diff options
author | minskim <minskim@pkgsrc.org> | 2005-06-07 03:52:10 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-06-07 03:52:10 +0000 |
commit | 64e70de383ed4b30475192a83dc729731fdb00f0 (patch) | |
tree | f119ecd4e62089accd4ab57db3286e69547015f5 /lang | |
parent | 6a660e824c0b5868341ce8ebe6fd17a4bd425394 (diff) | |
download | pkgsrc-64e70de383ed4b30475192a83dc729731fdb00f0.tar.gz |
Make libraries link against libdl if it is available. This fixes PR
pkg/29389.
Bump PKGREVISION.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/lua/Makefile | 6 | ||||
-rw-r--r-- | lang/lua/distinfo | 4 | ||||
-rw-r--r-- | lang/lua/patches/patch-ab | 8 |
3 files changed, 10 insertions, 8 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile index 93ab0c22ec0..f42c60dd496 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.23 2005/06/07 03:47:24 minskim Exp $ +# $NetBSD: Makefile,v 1.24 2005/06/07 03:52:10 minskim Exp $ DISTNAME= lua-5.0.2 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \ ftp://ftp.ntua.gr/pub/lang/lua/ \ @@ -29,6 +29,8 @@ CFLAGS+= -fPIC LIBS+= ${BUILDLINK_LDADD.dl} MAKE_ENV+= LIBS="${LIBS}" +.include "../../mk/dlopen.buildlink3.mk" + post-build: cd ${WRKSRC}/etc && ${SETENV} ${MAKE_ENV} ${MAKE} bin2c diff --git a/lang/lua/distinfo b/lang/lua/distinfo index 02ba1273dd0..e4cfd1acbb8 100644 --- a/lang/lua/distinfo +++ b/lang/lua/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.10 2005/02/24 09:03:09 agc Exp $ +$NetBSD: distinfo,v 1.11 2005/06/07 03:52:10 minskim Exp $ SHA1 (lua-5.0.2.tar.gz) = a200cfd20a9a4c7da1206ae45dddf26186a9e0e7 RMD160 (lua-5.0.2.tar.gz) = 5f1a1cf5802e38b3c4dcfc9f3cd0dc33bfdc0a30 Size (lua-5.0.2.tar.gz) = 190442 bytes SHA1 (patch-aa) = 0b3f82f2c510ef1fc0b3071fbdb16db91dcd7faf -SHA1 (patch-ab) = 788834909e1b1ef990805c334071d9ad8761c36f +SHA1 (patch-ab) = 6f8e8b903b10f95798593ecb3e51cb4db9766b11 diff --git a/lang/lua/patches/patch-ab b/lang/lua/patches/patch-ab index c170a64ec0d..eb78e3edae5 100644 --- a/lang/lua/patches/patch-ab +++ b/lang/lua/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.4 2004/04/05 02:31:06 xtraeme Exp $ +$NetBSD: patch-ab,v 1.5 2005/06/07 03:52:10 minskim Exp $ ---- Makefile.orig Fri Apr 11 00:34:38 2003 +--- Makefile.orig 2004-03-11 19:50:55.000000000 -0600 +++ Makefile @@ -38,8 +38,8 @@ install: all strip @@ -8,8 +8,8 @@ $NetBSD: patch-ab,v 1.4 2004/04/05 02:31:06 xtraeme Exp $ so: - ld -o lib/liblua.so.$V -shared src/*.o - ld -o lib/liblualib.so.$V -shared src/lib/*.o -+ ${CC} ${LDFLAGS} -o lib/liblua.so.$V -shared src/*.o -+ ${CC} ${LDFLAGS} -o lib/liblualib.so.$V -shared src/lib/*.o ++ ${CC} ${LDFLAGS} -o lib/liblua.so.$V -shared src/*.o ${LIBS} ++ ${CC} ${LDFLAGS} -o lib/liblualib.so.$V -shared src/lib/*.o ${LIBS} cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so # binaries using shared libraries |