diff options
author | brooks <brooks@FreeBSD.org> | 2013-11-04 23:36:49 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-11-04 23:36:49 +0000 |
commit | fe917e2f9d1832d92298ca01a86fcac01b206d1a (patch) | |
tree | ab8dd8ae6f896f05de47f132c990f34775fc01bb /gnu/usr.bin | |
parent | 8ca6127d10dff45a340b873604b1b68240a255d8 (diff) | |
download | FreeBSD-src-fe917e2f9d1832d92298ca01a86fcac01b206d1a.zip FreeBSD-src-fe917e2f9d1832d92298ca01a86fcac01b206d1a.tar.gz |
MFC r257530
Reimplement r257525 such that it work with the historic FreeBSD make
implementation. This fixes the toolchain and kernel-toolchain targets
when building from older FreeBSD versions where make is fmake.
Sponsored by: DARPA/AFRL
Approved by: re (glebius)
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 926bac4..dff1121 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -31,7 +31,12 @@ CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\" CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\" CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\" CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\" -CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX:U/}\" +CFLAGS+= -DBINDIR=\"${BINDIR}\" +.if defined(TOOLS_PREFIX) +CFLAGS+= -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\" +.else +CFLAGS+= -DTARGET_SYSTEM_ROOT=\"/\" +.endif CFLAGS+= -DTOOLBINDIR=\"${TOOLS_PREFIX}/${BINDIR}/libexec\" CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd |