[svn-commits] qwell: branch 1.2 r445 - /branches/1.2/Makefile

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 27 14:20:23 CDT 2007


Author: qwell
Date: Mon Aug 27 14:20:23 2007
New Revision: 445

URL: http://svn.digium.com/view/libpri?view=rev&rev=445
Log:
Make sure we build both the static and shared modules with -fPIC.

Modified:
    branches/1.2/Makefile

Modified: branches/1.2/Makefile
URL: http://svn.digium.com/view/libpri/branches/1.2/Makefile?view=diff&rev=445&r1=444&r2=445
==============================================================================
--- branches/1.2/Makefile (original)
+++ branches/1.2/Makefile Mon Aug 27 14:20:23 2007
@@ -38,7 +38,7 @@
 DYNAMIC_LIBRARY=libpri.so.1.0
 STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
 DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
+CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS)
 INSTALL_PREFIX=$(DESTDIR)
 INSTALL_BASE=/usr
 SOFLAGS = -Wl,-hlibpri.so.1.0
@@ -122,7 +122,7 @@
 endif
 
 %.lo : %.c
-	$(CC) -fPIC $(CFLAGS) -o $@ -c $<
+	$(CC) $(CFLAGS) -o $@ -c $<
 
 $(STATIC_LIBRARY): $(STATIC_OBJS)
 	ar rcs $(STATIC_LIBRARY) $(STATIC_OBJS)




More information about the svn-commits mailing list