we do -fPIC only on the .so

This commit is contained in:
crich 2006-12-07 17:00:36 +00:00
parent adb9bc4a41
commit df6f899366
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 $<

View File

@ -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 $<