diff options
author | jlam <jlam@pkgsrc.org> | 2004-12-19 04:37:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-12-19 04:37:30 +0000 |
commit | 3e20566cbce1b383abdb5ce8a0efb4678d0ababe (patch) | |
tree | df4f49bd99102ccc28571aae77872d036d68d323 /databases/lua-sqlite/Makefile | |
parent | 70460446e50641dcbdc86fa37e496d6355409645 (diff) | |
download | pkgsrc-3e20566cbce1b383abdb5ce8a0efb4678d0ababe.tar.gz |
Ensure that we build the shared library using PIC objects. This should
fix the build on amd64.
Diffstat (limited to 'databases/lua-sqlite/Makefile')
-rw-r--r-- | databases/lua-sqlite/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/databases/lua-sqlite/Makefile b/databases/lua-sqlite/Makefile index aac38081b09..ce4db257ec4 100644 --- a/databases/lua-sqlite/Makefile +++ b/databases/lua-sqlite/Makefile @@ -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 @@ COMMENT= SQLite binding for LUA 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 |