[asterisk-dev] [svn-commits] qwell: branch 1.2 r2962 - /branches/1.2/Makefile

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Aug 27 22:15:36 CDT 2007


On Mon, Aug 27, 2007 at 09:38:49PM -0000, SVN commits to the Digium repositories wrote:
> 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

Wasn't it already built with -fPIC?

(this is what LCFLAGS was for)

Why build all utilities 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 > $@

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list