diff options
| author | mycroft <mycroft@NetBSD.org> | 2000-03-26 09:54:28 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 2000-03-26 09:54:28 +0000 |
| commit | 2ced2ffc7d0944ad019ea8e7d5b584d105693546 (patch) | |
| tree | 6da38fee5cc2e0bd386f2e0040d9110851abe6af /gnu/lib/libstdc++ | |
| parent | ffdaae73e0e24a8889f47c56707f082ab6e24517 (diff) | |
Make this at least pretend to work when cross-compiling.
Diffstat (limited to 'gnu/lib/libstdc++')
| -rw-r--r-- | gnu/lib/libstdc++/config/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/lib/libstdc++/config/Makefile b/gnu/lib/libstdc++/config/Makefile index 10fe68cc7d1..bb40796a889 100644 --- a/gnu/lib/libstdc++/config/Makefile +++ b/gnu/lib/libstdc++/config/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 1999/02/13 23:53:57 lukem Exp $ +# $NetBSD: Makefile,v 1.4 2000/03/26 09:54:28 mycroft Exp $ # Makefile for _G_config.h, a machine-dependent automatically generated # configuration file. @@ -9,9 +9,16 @@ INCSDIR= /usr/include/${MACHINE} CLEANFILES= dummy.c dummy.h dummy.C _G_config.h DIST= ${.CURDIR}/../../../dist +.ifdef DESTDIR +LDPRE= -nostdlib -L${DESTDIR}/usr/lib -R${DESTDIR}/usr/lib ${LIBCRT0} \ + ${LIBCRTBEGIN} +LDSUF= -lgcc -lc -lgcc ${LIBCRTEND} +.endif + _G_config.h: Makefile ${DIST}/libio/gen-params rootme=${.OBJDIR} CC="${CC}" CXX="${CXX}" CONFIG_NM="${NM}" \ - CPP="${CC} -E -nostdinc -idirafter ${DESTDIR}/usr/include" \ + CPP="${CC} -E" CPPFLAGS="${CPPFLAGS}" LDPRE="${LDPRE}" \ + LDSUF="${LDSUF}" \ /bin/sh ${DIST}/libio/gen-params LIB_VERSION=2.9.0 >$@ all: ${DPSRCS} |
