]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
lua: don't be fancy when creating shared library
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 17 Nov 2012 21:19:26 +0000 (22:19 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 17 Nov 2012 21:19:26 +0000 (22:19 +0100)
(Possibly) fixes #5354

The lua shared library patch was creating the shared library with
-nostdlib -lgcc for some unknown reason, which most likely is
the reason for the link issue reported in #5354.

Fix it by dropping these arguments, so gcc gets to figure out itself
what dependencies are needed.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/lua/lua-02-shared-libs-for-lua.patch

index 454e660024f165b04b2cb53f156c3f053ad91439..97a70684f821b4e707711ed3655617a6043a57a5 100644 (file)
@@ -39,7 +39,7 @@ Index: b/src/Makefile
 -$(LUA_T): $(LUA_O) $(LUA_A)
 -      $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
 +$(LUA_SO): $(CORE_O) $(LIB_O)
-+      $(CC) -o $@.$(PKG_VERSION) -shared -Wl,-soname="$@.$(PKG_VERSION)" $? -nostdlib -lgcc
++      $(CC) -o $@.$(PKG_VERSION) -shared -Wl,-soname="$@.$(PKG_VERSION)" $?
 +      ln -fs $@.$(PKG_VERSION) $@
 +
 +$(LUA_T): $(LUA_O) $(LUA_SO)