pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/lua-sqlite Ensure that we build the shared l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d52e20d2112
branches:  trunk
changeset: 485712:0d52e20d2112
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Dec 19 04:37:30 2004 +0000

description:
Ensure that we build the shared library using PIC objects.  This should
fix the build on amd64.

diffstat:

 databases/lua-sqlite/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 8de618309b3f -r 0d52e20d2112 databases/lua-sqlite/Makefile
--- a/databases/lua-sqlite/Makefile     Sun Dec 19 04:26:40 2004 +0000
+++ b/databases/lua-sqlite/Makefile     Sun Dec 19 04:37:30 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/10/03 00:13:18 tv Exp $
+# $NetBSD: Makefile,v 1.3 2004/12/19 04:37:30 jlam Exp $
 #
 
 DISTNAME=      lsqlite_src
@@ -15,9 +15,12 @@
 WRKSRC=                ${WRKDIR}
 USE_BUILDLINK3=        yes
 
+CFLAGS+=       -fPIC
+LIBS+=         -llua -lsqlite -llualib
+
 do-build:
-       ${CC} ${WRKSRC}/lsqlite.c ${CFLAGS} ${LDFLAGS} \
-       -shared -llua -lsqlite -llualib -o ${WRKSRC}/libluasqlite.so
+       cd ${WRKSRC}; ${CC} -shared ${CFLAGS} ${LDFLAGS} lsqlite.c      \
+               -o libluasqlite.so ${LIBS}
 
 do-install:
        ${INSTALL_DATA} ${WRKSRC}/libluasqlite.so ${PREFIX}/lib



Home | Main Index | Thread Index | Old Index