040-remove-fpic-and-warnings.patch 560 B

1234567891011121314
  1. --- a/src/makefile
  2. +++ b/src/makefile
  3. @@ -163,9 +163,8 @@ DEF_linux=-DLUASOCKET_$(DEBUG) -DLUA_$(COMPAT)_MODULE \
  4. -DLUASOCKET_API='__attribute__((visibility("default")))' \
  5. -DUNIX_API='__attribute__((visibility("default")))' \
  6. -DMIME_API='__attribute__((visibility("default")))'
  7. -CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
  8. - -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
  9. -LDFLAGS_linux=-O -shared -fpic -o
  10. +CFLAGS_linux= -I$(LUAINC) $(DEF) -fvisibility=hidden
  11. +LDFLAGS_linux=-shared -o
  12. LD_linux=gcc
  13. SOCKET_linux=usocket.o