diff options
author | grant <grant> | 2003-09-28 09:48:00 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-28 09:48:00 +0000 |
commit | d8ed0a29778047b29cc00e725a0ac378b43601b4 (patch) | |
tree | 9e3fbce6fbcfea5a797deffb7fa58eecdbe41712 | |
parent | f97428fd621f90906eb91ddfa40dec8bc1959ed5 (diff) | |
download | pkgsrc-d8ed0a29778047b29cc00e725a0ac378b43601b4.tar.gz |
if /usr/lib/libstdc++.la exists, create the corresponding fake libtool
archive in ${BUILDLINK_DIR}/lib so packages can find and use it.
fixes some build problems seen on Slackware Linux 9.
-rw-r--r-- | mk/compiler.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index e89a50a4aa9..93e095e363b 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -1,4 +1,4 @@ -# $NetBSD: compiler.mk,v 1.13 2003/09/27 17:20:38 grant Exp $ +# $NetBSD: compiler.mk,v 1.14 2003/09/28 09:48:00 grant Exp $ # This Makefile fragment implements handling for supported # C/C++/fortran compilers. @@ -190,6 +190,19 @@ _GCC_LDFLAGS= -L${_GCC_ARCHDIR} -Wl,${RPATH_FLAG}${_GCC_ARCHDIR} -L${_GCC_PREFI LDFLAGS+= ${_GCC_LDFLAGS} .endif +# create a fake libstdc++.la if one exists in /usr/lib. +.if empty(USE_BUILDLINK2:M[nN][oO]) +. if defined(_CC_IS_GCC) && exists(/usr/lib/libstdc++.la) +BUILDLINK_TARGETS+= libstdc++-buildlink-la + +libstdc++-buildlink-la: + ${_PKG_SILENT}${_PKG_DEBUG} \ + lafile="${BUILDLINK_DIR}/lib/libstdc++.la"; \ + libpattern="/usr/lib/libstdc++.*"; \ + ${BUILDLINK_FAKE_LA} +. endif +.endif + # CC_VERSION can be tested by package Makefiles to tweak things based # on the compiler being used. This is only functional for gcc right now. # |