fix-linking.patch 766 B

1234567891011121314151617181920212223
  1. Index: lua-5.1.4/src/Makefile
  2. ===================================================================
  3. --- lua-5.1.4.orig/src/Makefile
  4. +++ lua-5.1.4/src/Makefile
  5. @@ -53,7 +53,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
  6. $(RANLIB) $@
  7. $(LUA_SO): $(CORE_O) $(LIB_O)
  8. - $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O)
  9. + $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LUA_O) $(LIBS)
  10. rm -f liblua.so
  11. ln -fs $@ liblua.so
  12. @@ -102,7 +102,7 @@ generic:
  13. $(MAKE) all MYCFLAGS=
  14. linux:
  15. - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
  16. + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-ldl -lreadline -lhistory -lncurses"
  17. macosx:
  18. $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"