mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
luasocket: Replace -fpic with $(FPIC)
This is causing linking errors on i386 and ppc. Also removed custom warnings an optimization levels that override stock settings. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
--- a/src/makefile
|
||||
+++ b/src/makefile
|
||||
@@ -163,9 +163,8 @@ DEF_linux=-DLUASOCKET_$(DEBUG) -DLUA_$(COMPAT)_MODULE \
|
||||
-DLUASOCKET_API='__attribute__((visibility("default")))' \
|
||||
-DUNIX_API='__attribute__((visibility("default")))' \
|
||||
-DMIME_API='__attribute__((visibility("default")))'
|
||||
-CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
|
||||
- -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
|
||||
-LDFLAGS_linux=-O -shared -fpic -o
|
||||
+CFLAGS_linux= -I$(LUAINC) $(DEF) -fvisibility=hidden
|
||||
+LDFLAGS_linux=-shared -o
|
||||
LD_linux=gcc
|
||||
SOCKET_linux=usocket.o
|
||||
|
||||
Reference in New Issue
Block a user