diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-27 13:56:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-27 13:56:33 +0000 |
commit | c071f4051e8bb86bea249d21932b9d3f28a6e4f3 (patch) | |
tree | d9f64e976dbbd6b435b236a714779b00ee0df23a | |
parent | 4e8da09f63f23ec5f8bd0e4259b2f35cc8326885 (diff) | |
download | pkgsrc-c071f4051e8bb86bea249d21932b9d3f28a6e4f3.tar.gz |
The sophisticated version checking was working, but symlinking files into
the buildlink directory wasn't (!). Fix it.
-rw-r--r-- | lang/gcc/buildlink2.mk | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/lang/gcc/buildlink2.mk b/lang/gcc/buildlink2.mk index 4083924e8ca..e6f044a9de7 100644 --- a/lang/gcc/buildlink2.mk +++ b/lang/gcc/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.1 2002/09/27 13:07:13 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.2 2002/09/27 13:56:33 jlam Exp $ .if !defined(GCC_BUILDLINK2_MK) GCC_BUILDLINK2_MK= # defined @@ -21,10 +21,13 @@ BUILDLINK_DEPMETHOD.gcc+= full BUILDLINK_DEPMETHOD.gcc?= build .endif -.if ${OPSYS} == "SunOS" BUILDLINK_PREFIX.gcc= ${LOCALBASE} +.if ${OPSYS} == "SunOS" +_GCC_PREFIX= ${BUILDLINK_PREFIX.gcc} +_GCC_SUBPREFIX= # empty .else -BUILDLINK_PREFIX.gcc= ${LOCALBASE}/gcc-2.95.3 +_GCC_PREFIX= ${BUILDLINK_PREFIX.gcc}/gcc-2.95.3 +_GCC_SUBPREFIX= gcc-2.95.3/ .endif .if defined(USE_PKGSRC_GCC) @@ -42,7 +45,7 @@ _GCC_PKG= gcc-${_GCC_VERSION} _NEED_PKGSRC_GCC!= \ if ${PKG_ADMIN} pmatch '${BUILDLINK_DEPENDS.gcc}' ${_GCC_PKG}; then \ gccpath=`${TYPE} gcc | ${AWK} '{ print $$NF }'`; \ - if [ "$$gccpath" = "${BUILDLINK_PREFIX.gcc}/bin/gcc" ]; then \ + if [ "$$gccpath" = "${_GCC_PREFIX}/bin/gcc" ]; then \ ${ECHO} "YES"; \ else \ ${ECHO} "NO"; \ @@ -54,32 +57,32 @@ _NEED_PKGSRC_GCC!= \ .if ${_NEED_PKGSRC_GCC} == "YES" BUILDLINK_PACKAGES+= gcc -PATH:= ${BUILDLINK_PREFIX.gcc}/bin:${PATH} -CC= ${BUILDLINK_PREFIX.gcc}/bin/gcc -CPP= ${BUILDLINK_PREFIX.gcc}/bin/cpp -CXX= ${BUILDLINK_PREFIX.gcc}/bin/g++ -F77= ${BUILDLINK_PREFIX.gcc}/bin/g77 +PATH:= ${_GCC_PREFIX}/bin:${PATH} +CC= ${_GCC_PREFIX}/bin/gcc +CPP= ${_GCC_PREFIX}/bin/cpp +CXX= ${_GCC_PREFIX}/bin/g++ +F77= ${_GCC_PREFIX}/bin/g77 PKG_FC= ${F77} -BUILDLINK_LDFLAGS.gcc= -Wl,-R${BUILDLINK_PREFIX.gcc}/lib +BUILDLINK_LDFLAGS.gcc= -Wl,-R${_GCC_PREFIX}/lib LDFLAGS+= ${BUILDLINK_LDFLAGS.gcc} .endif # _NEED_PKGSRC_GCC == YES -_GCC_ARCHSUBDIR= lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${_GCC_VERSION} +_GCC_ARCHSUBDIR= lib/gcc-lib/${MACHINE_GNU_PLATFORM}/2.95.3 # These file are from gcc>=2.95.3. -BUILDLINK_FILES.gcc= include/g++-3/* -BUILDLINK_FILES.gcc+= include/g++-3/*/* -BUILDLINK_FILES.gcc+= ${_GCC_ARCHSUBDIR}/include/* -BUILDLINK_FILES.gcc+= ${_GCC_ARCHSUBDIR}/include/*/* -BUILDLINK_FILES.gcc+= ${_GCC_ARCHSUBDIR}/include/*/*/* -BUILDLINK_FILES.gcc+= ${_GCC_ARCHSUBDIR}/include/*/*/*/* -BUILDLINK_FILES.gcc+= ${_GCC_ARCHSUBDIR}/lib*.* -BUILDLINK_FILES.gcc+= ${_GCC_ARCHSUBDIR}/specs -BUILDLINK_FILES.gcc+= ${MACHINE_GNU_PLATFORM}/include/* -BUILDLINK_FILES.gcc+= ${MACHINE_GNU_PLATFORM}/include/*/* -BUILDLINK_FILES.gcc+= lib/libiberty.* -BUILDLINK_FILES.gcc+= lib/libstdc++.* +BUILDLINK_FILES.gcc= ${_GCC_SUBPREFIX}include/g++-3/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}include/g++-3/*/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*/*/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*/*/*/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/lib*.* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/specs +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${MACHINE_GNU_PLATFORM}/include/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${MACHINE_GNU_PLATFORM}/include/*/* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/libiberty.* +BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/libstdc++.* BUILDLINK_TARGETS+= gcc-buildlink |