diff options
author | jb <jb@FreeBSD.org> | 1999-11-06 22:44:32 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1999-11-06 22:44:32 +0000 |
commit | 7c5467e518d206ba7db51851d488eb699e8acd56 (patch) | |
tree | f61432e91e9719d37e30f2776d0acf73cc079cf2 /gnu | |
parent | e28213219409cea58e3820e89ca982bb93425ee5 (diff) | |
download | FreeBSD-src-7c5467e518d206ba7db51851d488eb699e8acd56.zip FreeBSD-src-7c5467e518d206ba7db51851d488eb699e8acd56.tar.gz |
Use the simplified genscripts.sh and set the cross-compiled library
directory to /usr/cross/${MACHINE_ARCH}-freebsdelf/usr/lib so that
the cross tools behave the same way that the host versions do. When
building cross tools, Cygnus doesn't set the default library directory.
This doesn't suit FreeBSD IMHO.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile.alpha | 7 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile.mips | 13 |
2 files changed, 12 insertions, 8 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile.alpha b/gnu/usr.bin/binutils/ld/Makefile.alpha index 6665fde..0d29a53 100644 --- a/gnu/usr.bin/binutils/ld/Makefile.alpha +++ b/gnu/usr.bin/binutils/ld/Makefile.alpha @@ -6,6 +6,9 @@ HOST= alpha-unknown-freebsdelf CFLAGS+= -DDEFAULT_EMULATION=\"elf64alpha\" CFLAGS+= -DTARGET=\"alpha-unknown-freebsdelf\" +_alpha_path= \"/usr/lib\" +.else +_alpha_path= \"/usr/cross/alpha-freebsdelf/usr/lib\" .endif EMS+= ld_elf64alpha_emulation LDSCRIPTS+= elf64alpha.x elf64alpha.xbn elf64alpha.xn elf64alpha.xr \ @@ -16,12 +19,12 @@ CLEANFILES+= eelf64alpha.c ealpha.c eelf64alpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \ scripttempl/elf.sc genscripts.sh emultempl/stringify.sed - sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \ + sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \ ${HOST} alpha-unknown-freebsdelf alpha-unknown-freebsdelf \ elf64alpha "" elf64alpha alpha-unknown-freebsdelf ealpha.c: emulparams/elf64alpha.sh emultempl/elf32.em \ scripttempl/elf.sc genscripts.sh emultempl/stringify.sed - sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \ + sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_alpha_path} \ ${HOST} alpha-unknown-freebsdelf alpha-unknown-freebsdelf \ elf64alpha "" alpha alpha-unknown-freebsd diff --git a/gnu/usr.bin/binutils/ld/Makefile.mips b/gnu/usr.bin/binutils/ld/Makefile.mips index fdfa804..5e928b8 100644 --- a/gnu/usr.bin/binutils/ld/Makefile.mips +++ b/gnu/usr.bin/binutils/ld/Makefile.mips @@ -6,11 +6,14 @@ HOST= mipseb-unknown-freebsdelf CFLAGS+= -DDEFAULT_EMULATION=\"elf32bmip\" CFLAGS+= -DTARGET=\"elf32-bigmips\" -.endif -.if ${MACHINE_ARCH} == "mipsel" +_mips_path= \"/usr/lib\" +.elif ${MACHINE_ARCH} == "mipsel" HOST= mipsel-unknown-freebsdelf CFLAGS+= -DDEFAULT_EMULATION=\"elf32lmip\" CFLAGS+= -DTARGET=\"elf32-littlemips\" +_mips_path= \"/usr/lib\" +.else +_mips_path= \"/usr/cross/mips-freebsdelf/usr/lib\" .endif EMS+= ld_elf32bmip_emulation ld_elf32lmip_emulation LDSCRIPTS+= elf32bmip.x elf32bmip.xbn elf32bmip.xn elf32bmip.xr \ @@ -23,15 +26,13 @@ CLEANFILES+= eelf32lmip.c eelf32bmip.c: emulparams/elf32ebmip.sh emultempl/elf32.em \ scripttempl/elf.sc genscripts.sh emultempl/stringify.sed - env LIB_PATH="/usr/lib" \ - sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \ + sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_mips_path} \ ${HOST} mipseb-unknown-freebsdelf mipseb-unknown-freebsdelf \ elf32bmip "" elf32bmip mipseb-unknown-freebsdelf eelf32lmip.c: emulparams/elf32elmip.sh emultempl/elf32.em \ scripttempl/elf.sc genscripts.sh emultempl/stringify.sed - env LIB_PATH="/usr/lib" \ - sh ${SRCDIR}/ld/genscripts.sh ${SRCDIR}/ld ${DESTDIR}/usr/lib \ + sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_mips_path} \ ${HOST} mipsel-unknown-freebsdelf mipsel-unknown-freebsdelf \ elf32lmip "" elf32lmip mipsel-unknown-freebsdelf |