[libpri-commits] jpeeler: branch 1.4 r976 - /branches/1.4/Makefile

SVN commits to the libpri project libpri-commits at lists.digium.com
Tue Aug 18 15:59:38 CDT 2009


Author: jpeeler
Date: Tue Aug 18 15:59:32 2009
New Revision: 976

URL: http://svn.asterisk.org/svn-view/libpri?view=rev&rev=976
Log:
Allow custom CPU optimization flags 

Added make variable LIBPRI_OPT to set optimization level. By default the
optimization level is now set to -O2.

(closes issue #12676)
Reported by: tzafrir
Patches:
      libpri_opt.diff uploaded by tzafrir (license 46)

Modified:
    branches/1.4/Makefile

Modified: branches/1.4/Makefile
URL: http://svn.asterisk.org/svn-view/libpri/branches/1.4/Makefile?view=diff&rev=976&r1=975&r2=976
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Tue Aug 18 15:59:32 2009
@@ -79,7 +79,7 @@
 	rose_qsig_mwi.lo \
 	rose_qsig_name.lo \
 	version.lo
-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS)
+CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS) $(LIBPRI_OPT)
 INSTALL_PREFIX=$(DESTDIR)
 INSTALL_BASE=/usr
 libdir?=$(INSTALL_BASE)/lib
@@ -110,7 +110,9 @@
 #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
 ifeq ($(PROC),sparc64)
 PROC=ultrasparc
-CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+else
+LIBPRI_OPT = -O2
 endif
 
 all: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)




More information about the libpri-commits mailing list