compile and link with -fPIC for shared objs
This commit is contained in:
parent
3a6acb778e
commit
84bf0bf406
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-makefile_Linux,v 1.1.1.1 2004/12/16 13:38:12 pedro Exp $
|
||||
--- makefile.Linux.orig Mon Jul 26 17:17:35 2004
|
||||
+++ makefile.Linux Tue Aug 10 21:16:32 2004
|
||||
$OpenBSD: patch-makefile_Linux,v 1.2 2004/12/29 07:29:16 pvalchev Exp $
|
||||
--- makefile.Linux.orig Mon Jul 26 14:17:35 2004
|
||||
+++ makefile.Linux Wed Dec 29 00:29:02 2004
|
||||
@@ -3,28 +3,13 @@ MV=1.0
|
||||
|
||||
LUAC=luac
|
||||
@ -30,7 +30,7 @@ $OpenBSD: patch-makefile_Linux,v 1.1.1.1 2004/12/16 13:38:12 pedro Exp $
|
||||
+MOBJS= mime.o
|
||||
|
||||
-CFLAGS=-I../../include $(PROF) $(OPT) $(DBG) $(DEF) -pedantic -W -Wall
|
||||
+CFLAGS+= -I$(LOCALBASE)/include
|
||||
+CFLAGS+= -I$(LOCALBASE)/include -fPIC -DPIC
|
||||
|
||||
LDYN=luasocket.so.$(LV)
|
||||
|
||||
@ -39,11 +39,11 @@ $OpenBSD: patch-makefile_Linux,v 1.1.1.1 2004/12/16 13:38:12 pedro Exp $
|
||||
|
||||
$(LDYN): $(LOBJS)
|
||||
- gcc -shared -o $(LDYN) $(LOBJS)
|
||||
+ $(CC) -shared -o $(LDYN) $(LOBJS)
|
||||
+ $(CC) -shared -fPIC -o $(LDYN) $(LOBJS)
|
||||
|
||||
$(MDYN): $(MOBJS)
|
||||
- gcc -shared -o $(MDYN) $(MOBJS)
|
||||
+ $(CC) -shared -o $(MDYN) $(MOBJS)
|
||||
+ $(CC) -shared -fPIC -o $(MDYN) $(MOBJS)
|
||||
|
||||
# dependencies
|
||||
auxiliar.o: auxiliar.c auxiliar.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user