]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set -fno-strict-aliasing on mod_php for gcc. we really need to not be doing this...
authorMichael Jerris <mike@jerris.com>
Tue, 12 Sep 2006 04:02:13 +0000 (04:02 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 12 Sep 2006 04:02:13 +0000 (04:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2654 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_php/Makefile

index 58332718b4f2853382cf126093747e56bfcb0fa5..7539d461c36e676d6ad817513ef4ed6291dea5a3 100644 (file)
@@ -2,7 +2,8 @@
 PCFG=$(PREFIX)/bin/php-config
 
 LCFLAGS=-fPIC -DZTS -DPTHREADS
-CFLAGS += `$(PCFG) --includes` -g3
+# we should NOT use -fno-strict-aliasing.  we need to fix this issue, but it is an issue in the php header files.  we need to be careful of the optimization level on this module becuase of this setting.
+CFLAGS += `$(PCFG) --includes` -g3 -fno-strict-aliasing
 MDIR += `$(PCFG) --extension-dir`
 PHPMOD=freeswitch
 PHPLDFLAGS = `$(PCFG) --ldflags` -lcrypt -lresolv -lm -ldl -lnsl -lxml2 -lz -lphp5