we do -fPIC only on the .so
This commit is contained in:
parent
adb9bc4a41
commit
df6f899366
2
Makefile
2
Makefile
|
@ -32,7 +32,7 @@ CFLAGS:= -g -Wall -O2 -I $(INCLUDEDIR) -I $(MISDNINCLUDEDIR)
|
|||
CFLAGS+= -D CLOSE_REPORT=1
|
||||
|
||||
#disable this if your system does not support PIC (position independent code)
|
||||
CFLAGS+=-fPIC
|
||||
#CFLAGS+=-fPIC
|
||||
|
||||
export CFLAGS
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ libisdnnet.a: $(ISDNNET_OBJ)
|
|||
$(RANLIB) $@
|
||||
|
||||
libisdnnet.so: $(ISDNNET_OBJ)
|
||||
$(CC) -shared -Xlinker -x -o $@ $^
|
||||
$(CC) -fPIC -shared -Xlinker -x -o $@ $^
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
|
|
@ -21,7 +21,7 @@ libmISDN.a: $(LIBMISDN_OBJS)
|
|||
$(RANLIB) $@
|
||||
|
||||
libmISDN.so: $(LIBMISDN_OBJS)
|
||||
$(CC) -shared -Xlinker -x -o $@ $^
|
||||
$(CC) -fPIC -shared -Xlinker -x -o $@ $^
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
|
Loading…
Reference in New Issue