src/world/tc-adjust/Makefile

26 lines
558 B
Makefile
Raw Normal View History

# Makefile - hhl - /usr/src/world/tc-adjust
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
include world.mk
bindir = /toolchain/bin
ifeq (${arch},x86_64)
vendor = pc
abi = gnu
else
vendor = unknown
abi = gnueabi
endif
tgtbindir = /toolchain/${arch}-${vendor}-linux-${abi}/bin
install: /toolchain/.adjusted
/toolchain/.adjusted:
mv -v ${bindir}/ld ${bindir}/ld-old
mv -v ${tgtbindir}/ld ${tgtbindir}/ld-old
mv -v ${bindir}/ld-new ${bindir}/ld
ln -sfv ${bindir}/ld ${tgtbindir}/ld
${wkgdir}/specs-adjust.sh
touch $@