diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-01-07 21:59:01 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-01-07 21:59:01 +0000 |
commit | 208f3677ae3b067cc246bd5adda9ed9e7dedc646 (patch) | |
tree | cb96d2dfcc117fd3b112e2ef13d55295859ef285 /lang/gcc295 | |
parent | Update to 1.1.1. (diff) |
Introduce `TARGLIB' from gcc-devel to clean this thing up.
Also change the ELF vs. aout logic so other formats can be targeted.
Notes
Notes:
svn path=/head/; revision=36907
Diffstat (limited to 'lang/gcc295')
-rw-r--r-- | lang/gcc295/Makefile | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lang/gcc295/Makefile b/lang/gcc295/Makefile index 39185c612dda..6f755d093748 100644 --- a/lang/gcc295/Makefile +++ b/lang/gcc295/Makefile @@ -30,19 +30,21 @@ MAINTAINER= obrien@FreeBSD.org .include <bsd.port.pre.mk> GCC_REV= ${DISTNAME:S/gcc-//g:S/.test1//g} +TARGLIB= ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV} LIBSTDCPP_REV= 2100 -.if ${PORTOBJFORMAT} == "elf" -CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL} -.else +.if ${PORTOBJFORMAT} == "aout" CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL} +.else +CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL} .endif PLIST_SUB+= EGCS_REV=${GCC_REV} GNU_HOST=${CONFIGURE_TARGET} GNU_CONFIGURE= yes USE_GMAKE= yes CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld \ - --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/include/g++ + --with-gxx-include-dir=${TARGLIB}/include/g++ +#CONFIGURE_ARGS+= --program-suffix=-2.95.3 .if defined(WANT_SHAREDLIBS) CONFIGURE_ARGS+= --enable-shared .endif @@ -77,12 +79,12 @@ post-install: ${PREFIX}/bin/g++filt ${PREFIX}/bin/g77 ${PREFIX}/bin/gcov \ ${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \ ${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1 \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1obj \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1plus \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cpp0 \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/collect2 \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/f771 ; \ + ${TARGLIB}/cc1 \ + ${TARGLIB}/cc1obj \ + ${TARGLIB}/cc1plus \ + ${TARGLIB}/cpp0 \ + ${TARGLIB}/collect2 \ + ${TARGLIB}/f771 ; \ do \ strip $$prog ; \ done) @@ -91,22 +93,20 @@ post-install: ${MV} ${PREFIX}/bin/g77 ${PREFIX}/bin/g77 ${MV} ${PREFIX}/bin/g++filt ${PREFIX}/bin/g++filt295 ${RM} -f ${PREFIX}/bin/cpp - ${MV} ${PREFIX}/lib/libiberty.a \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV} + ${MV} ${PREFIX}/lib/libiberty.a ${TARGLIB} ${MV} -f ${PREFIX}/lib/libstdc++.a.${LIBSTDCPP_REV} \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/libstdc++.a + ${TARGLIB}/libstdc++.a ${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc295.1 ${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++295.1 ${MV} ${PREFIX}/man/man1/g77.1 ${PREFIX}/man/man1/g77.1 .if defined(WANT_SHAREDLIBS) - ${MV} -f ${PREFIX}/lib/libstdc++.so* \ - ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV} + ${MV} -f ${PREFIX}/lib/libstdc++.so* ${TARGLIB} .endif .for info in cpp g77 gcc install-info ${PREFIX}/info/${info}.info ${PREFIX}/info/dir .endfor cd ${PREFIX} ;\ - find lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV} \ + find lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV} \ -type f -o -type l >${WRKDIR}/PLIST.gcc-lib ${ECHO} "r ${TMPPLIST}" > ${WRKDIR}/ex.script ${ECHO} "/Insert PLIST.gcc-lib" >> ${WRKDIR}/ex.script |