OBS-URL: https://build.opensuse.org/package/show/server:dns/luajit-luasocket?expand=0&rev=1
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
Index: luasocket-3.0-rc1/src/makefile
|
|
===================================================================
|
|
--- luasocket-3.0-rc1.orig/src/makefile
|
|
+++ luasocket-3.0-rc1/src/makefile
|
|
@@ -102,6 +102,8 @@ INSTALL_TOP=$(DESTDIR)$(prefix)
|
|
|
|
INSTALL_TOP_LDIR=$(INSTALL_TOP)/$(LDIR)
|
|
INSTALL_TOP_CDIR=$(INSTALL_TOP)/$(CDIR)
|
|
+INSTALL_TOP_LDIR=$(DESTDIR)`pkg-config --variable=INSTALL_LMOD luajit`
|
|
+INSTALL_TOP_CDIR=$(DESTDIR)`pkg-config --variable=INSTALL_CMOD luajit`
|
|
|
|
INSTALL_SOCKET_LDIR=$(INSTALL_TOP_LDIR)/socket
|
|
INSTALL_SOCKET_CDIR=$(INSTALL_TOP_CDIR)/socket
|
|
@@ -149,7 +151,7 @@ DEF_linux=-DLUASOCKET_$(DEBUG) -DLUA_$(C
|
|
-DLUASOCKET_API='__attribute__((visibility("default")))' \
|
|
-DUNIX_API='__attribute__((visibility("default")))' \
|
|
-DMIME_API='__attribute__((visibility("default")))'
|
|
-CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
|
|
+CFLAGS_linux= `pkg-config --cflags luajit` $(OPTFLAGS) $(DEF) -pedantic -Wall -Wshadow -Wextra \
|
|
-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
|
|
LDFLAGS_linux=-O -shared -fpic -o
|
|
LD_linux=gcc
|