[zaptel-commits] qwell: branch 1.2 r2962 - /branches/1.2/Makefile

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Aug 27 16:38:49 CDT 2007


Author: qwell
Date: Mon Aug 27 16:38:48 2007
New Revision: 2962

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2962
Log:
Make sure we build the static version of libtonezone
 (and as a side-effect, all of the programs) with -fPIC

Modified:
    branches/1.2/Makefile

Modified: branches/1.2/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.2/Makefile?view=diff&rev=2962&r1=2961&r2=2962
==============================================================================
--- branches/1.2/Makefile (original)
+++ branches/1.2/Makefile Mon Aug 27 16:38:48 2007
@@ -108,7 +108,7 @@
 
 INSTALL_PREFIX	:= /usr
 
-CFLAGS+=-I. -O4 -g -Wall
+CFLAGS+=-I. -O4 -g -fPIC -Wall
 ifneq (,$(findstring ppc,$(MACHINE)))
   CFLAGS	+= -fsigned-char
   KFLAGS	+= -msoft-float -fsigned-char
@@ -117,7 +117,6 @@
   CFLAGS	+= -m64
   KFLAGS	+= -mcmodel=kernel
 endif
-LCFLAGS:=-fPIC $(CFLAGS) -DBUILDING_TONEZONE
 KFLAGS:=-I$(KINCLUDES) -O6
 KFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I$(KSRC)/drivers/net \
 	-Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I$(KSRC)/drivers/net/wan -I$(KINCLUDES)/net
@@ -285,7 +284,7 @@
 	$(CC) $(KFLAGS) -o $@ -c $<
 
 zonedata.lo tonezone.lo: %.lo: %.c
-	$(CC) -c $(LCFLAGS) -o $@ $^
+	$(CC) -c $(CFLAGS) -o $@ $^
 
 tones.h: gendigits
 	./gendigits > $@




More information about the zaptel-commits mailing list