From 88696241a4515111e1c4257575033b0336bef22a Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 8 Sep 2004 10:22:01 +0000 Subject: GCC generates and uses its own libtool to build shared libraries, and the resulting shared library names don't necessarily match the NetBSD names. Instead of hardcoding the shared library names in the PLISTs, only list the libtool archives in the PLISTs and dynamically determine the shared library names at post-install time and insert them into the PLIST. This fixes PLIST errors on non-NetBSD platforms. All of the magic is done in pkgsrc/lang/gcc3/language.mk. This should probably be generalized into something that could be used by all packages that use libtool. --- lang/gcc3-c++/PLIST | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lang/gcc3-c++') diff --git a/lang/gcc3-c++/PLIST b/lang/gcc3-c++/PLIST index db1fed7833a..327504974e4 100644 --- a/lang/gcc3-c++/PLIST +++ b/lang/gcc3-c++/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2004/07/02 15:40:01 drochner Exp $ +@comment $NetBSD: PLIST,v 1.5 2004/09/08 10:22:01 jlam Exp $ ${GCC_SUBPREFIX}/bin/c++ ${GCC_SUBPREFIX}/bin/g++ ${GCC_SUBPREFIX}/bin/${GCC_PLATFORM}-c++ @@ -190,12 +190,7 @@ ${GCC_SUBPREFIX}/include/c++/${PKGVERSION}/utility ${GCC_SUBPREFIX}/include/c++/${PKGVERSION}/valarray ${GCC_SUBPREFIX}/include/c++/${PKGVERSION}/vector ${GCC_SUBPREFIX}/lib/gcc-lib/${GCC_PLATFORM}/${PKGVERSION}/cc1plus -${GCC_SUBPREFIX}/lib/libstdc++.a ${GCC_SUBPREFIX}/lib/libstdc++.la -${GCC_SUBPREFIX}/lib/libstdc++.so -${GCC_SUBPREFIX}/lib/libstdc++.so.5 -${GCC_SUBPREFIX}/lib/libstdc++.so.5.6 -${GCC_SUBPREFIX}/lib/libsupc++.a ${GCC_SUBPREFIX}/lib/libsupc++.la ${GCC_SUBPREFIX}/man/man1/g++.1 ${GCC_SUBPREFIX}/mk/c++.mk -- cgit v1.2.3