Skip to content

Instantly share code, notes, and snippets.

@plntyk
Created August 22, 2016 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plntyk/d4b018b4678b0994c7059f531e0dc68b to your computer and use it in GitHub Desktop.
Save plntyk/d4b018b4678b0994c7059f531e0dc68b to your computer and use it in GitHub Desktop.
commit 6eb59283a51cb3f9f90713dcee4d1aa617f42ace
Author: Dirk Neukirchen <dirkneukirchen@web.de>
Date: Mon May 23 18:38:56 2016 +0200
luasocket: fix build issues
use gcc as linker
fix buildbot issues: multiple
src/buffer.c:151: undefined reference to `__stack_chk_fail_local'
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
diff --git a/lang/luasocket/Makefile b/lang/luasocket/Makefile
index 5e7c983..d105550 100644
--- a/lang/luasocket/Makefile
+++ b/lang/luasocket/Makefile
@@ -40,9 +40,10 @@ endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/ \
+ LUAINC_linux_base="$(STAGING_DIR)/usr/include" \
LIBDIR="$(TARGET_LDFLAGS)" \
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -std=gnu99" \
- LD="$(TARGET_CROSS)ld -shared" \
+ LD="$(TARGET_CC) -shared" \
all
endef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment