The defualt CFLAGS is `-g -Wall'. We can change it with
./configure CFLAGS="your option". The `-g' options also make
it able to build debugsource & debuginfo packages.
---
 src/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 76ebee6..6fab5f0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,8 +8,8 @@ EXTRA_DIST = libvirt-php.c libvirt-php.h
 all-am: build clean-temp
 
 build:
-       $(CC) -Wall -fpic -DCOMPILE_DL_LIBVIRT=1 $(PHPINC) -c -o $(PACKAGE).o 
libvirt-php.c $(LIBXML_CFLAGS) $(DEFINES)
-       $(CC) -Wall -shared $(LIBS) -rdynamic -o $(PACKAGE).so $(PACKAGE).o 
-ldl -lvirt $(LIBXML_LIBS)
+       $(CC) $(CFLAGS) -fpic -DCOMPILE_DL_LIBVIRT=1 $(PHPINC) -c -o 
$(PACKAGE).o libvirt-php.c $(LIBXML_CFLAGS) $(DEFINES)
+       $(CC) $(CFLAGS) -shared $(LIBS) -rdynamic -o $(PACKAGE).so $(PACKAGE).o 
-ldl -lvirt $(LIBXML_LIBS)
        $(ECHO) "Extension compiled as $(PACKAGE).so"
 
 install-exec-local:
-- 
1.7.3.4

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to