Source-Changes-HG archive

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

[src/trunk]: src/external/mit/lua/usr.bin/lua link against the dynamic librar...



details:   https://anonhg.NetBSD.org/src/rev/53324fa12536
branches:  trunk
changeset: 761050:53324fa12536
user:      plunky <plunky%NetBSD.org@localhost>
date:      Wed Jan 19 11:38:15 2011 +0000

description:
link against the dynamic library [liblua.so]

we could link against the static liblua.a here (the Lua dist build
does that) but would need to pass "-Wl,--export-dynamic" to ensure that
all symbols were available, as dlopen() with other modules may cause
problems later.

diffstat:

 external/mit/lua/usr.bin/lua/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5b98964ceaf6 -r 53324fa12536 external/mit/lua/usr.bin/lua/Makefile
--- a/external/mit/lua/usr.bin/lua/Makefile     Wed Jan 19 11:27:01 2011 +0000
+++ b/external/mit/lua/usr.bin/lua/Makefile     Wed Jan 19 11:38:15 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2011/01/19 10:17:04 plunky Exp $
+# $NetBSD: Makefile,v 1.4 2011/01/19 11:38:15 plunky Exp $
 
 PROG=          lua
 SRCS=          lua.c
@@ -6,7 +6,7 @@
 
 CPPFLAGS+=     -DLUA_USE_READLINE
 
-LDADD+=                ${LIBLUA}
+LDADD+=                -llua
 DPADD+=                ${LIBLUA}
 
 LDADD+=                -lterminfo -lm -ledit



Home | Main Index | Thread Index | Old Index