diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2013-11-01 22:03:20 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2013-11-01 22:03:20 +0000 |
commit | 2fda6dbc97ca4fabf6b4fad8336347b2ab2f9d5a (patch) | |
tree | 880f973e2a11d7e9a9bb7e061a897797493aa11d /gnu/usr.bin | |
parent | ce3ee1e7c4cac5b86bbc15daac68f2129aa42187 (diff) | |
download | src-2fda6dbc97ca4fabf6b4fad8336347b2ab2f9d5a.tar.gz src-2fda6dbc97ca4fabf6b4fad8336347b2ab2f9d5a.zip |
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.
Reported by: luigi
Sponsored by: DARPA/AFRL
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=257530
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 926bac42f7d2..dff112169eba 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 |