diff options
| author | tv <tv@NetBSD.org> | 2001-10-04 17:46:22 +0000 |
|---|---|---|
| committer | tv <tv@NetBSD.org> | 2001-10-04 17:46:22 +0000 |
| commit | bf8eb2fc2d6bae5532c7b3e0d6d8f535f04677db (patch) | |
| tree | 1818ef5df02852c435db0680f6effec15d815b5d /gnu/usr.bin/binutils | |
| parent | d00ed4116f1a781b42347b0f02f99f251d662ac8 (diff) | |
Generate ldcripts as "native" for a native linker. However, disable
installation into /usr/share/ldscripts at the moment, as the scripts will
no longer be shareable on all targets. This will be tweaked at a later
date to generate "cross style" scripts for all targets (native ones are
compiled into the ld binary) so that they will indeed be shareable.
Should fix PR bin/14114, pkg/14122, and related issues.
Diffstat (limited to 'gnu/usr.bin/binutils')
| -rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index e17b4d9d75a..a9052c4356d 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2001/08/19 17:19:46 matt Exp $ +# $NetBSD: Makefile,v 1.6 2001/10/04 17:46:22 tv Exp $ TOP= ${.CURDIR}/../../.. DIST= ${TOP}/dist/toolchain @@ -26,7 +26,7 @@ DPADD+= ${IBERTYOBJ}/libiberty.a TEXINFO= ${G_TEXINFOS} INFOFLAGS= -I${DIST}/ld -I${DIST}/bfd/doc -FILESDIR= /usr/share/ldscripts +#FILESDIR= /usr/share/ldscripts .PATH: ${DIST}/ld ${DIST}/ld/emulparams \ ${DIST}/ld/emultempl ${DIST}/ld/scripttempl ldscripts @@ -58,17 +58,19 @@ stringify.sed: ${G_STRINGIFY} CLEANFILES+= .depend.${f} e${f}.c -e${f}.c: ${DIST}/ld/genscripts.sh stringify.sed - MACHINE= LIB_PATH=/usr/lib sh ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} /usr \ - none ${G_target_alias} ${G_target_alias} ${G_EMUL} ${LIBDIR} ${f} +e${f}.c: ${DIST}/ld/genscripts.sh ${.CURDIR}/Makefile stringify.sed + MACHINE= LIB_PATH=/usr/lib \ + sh ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} /usr \ + ${G_target_alias} ${G_target_alias} ${G_target_alias} \ + ${G_EMUL} ${LIBDIR} ${f} -FILES+= ${f}.x ${f}.xbn ${f}.xn ${f}.xr ${f}.xu +#FILES+= ${f}.x ${f}.xbn ${f}.xn ${f}.xr ${f}.xu # XXX hack to find out if .xs exists - slow! -HAS_XS!= grep '^GENERATE_SHLIB_SCRIPT' ${DIST}/ld/emulparams/${f}.sh || echo -.if !empty(HAS_XS) -FILES+= ${f}.xs -.endif +#HAS_XS!= grep '^GENERATE_SHLIB_SCRIPT' ${DIST}/ld/emulparams/${f}.sh || echo +#.if !empty(HAS_XS) +#FILES+= ${f}.xs +#.endif .endfor .include <bsd.prog.mk> |
