lua: don't try to -ldl -lm on non-Linux OSes
On other OSes, like NetBSD, these are part of libc. Fortunately, the Lua Makefile already knows about this, and has a SYSLIBS variable we can use for this.
This commit is contained in:
parent
34f8d7e15a
commit
8abdf1db65
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
$(LUA_SO): $(CORE_O) $(LIB_O)
|
||||
$(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
|
||||
$(CC) -shared $(SYSLIBS) -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? $(MYLDFLAGS)
|
||||
ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
|
||||
ln -sf $(LUA_SO).$(R) $(LUA_SO)
|
||||
|
|
Loading…
Reference in a new issue