Added -fPIC to fix chan_lcr shared object.
authorAndreas Eversberg <andreas@eversberg.eu>
Sat, 30 Aug 2008 06:55:34 +0000 (08:55 +0200)
committerAndreas Eversberg <andreas@eversberg.eu>
Sat, 30 Aug 2008 06:55:34 +0000 (08:55 +0200)
modified:   Makefile

Makefile

index 171b57b..b337e51 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -230,7 +230,8 @@ $(LCRADMIN): lcradmin.c cause.c options.c *.h Makefile
        options.c -o $(LCRADMIN) 
 
 $(CHAN_LCR): chan_lcr.o bchannel.o callerid.o options.o *.h Makefile
-       $(CC) -shared -Xlinker -x $(LDFLAGS) -o $(CHAN_LCR) chan_lcr.o bchannel.o callerid.o options.o
+       $(CC) -shared -fPIC -Xlinker -x $(LDFLAGS) -o $(CHAN_LCR) chan_lcr.o \
+               bchannel.o callerid.o options.o
 
 
 $(LCRWATCH): watch.c *.h Makefile