summaryrefslogtreecommitdiffstats
path: root/bindings/php5
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 13:57:34 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 13:57:34 +0000
commit180fb41fa7c786dbc58974171c861efcbba5d542 (patch)
tree648854ec7a972831f1ab7eb656d50736160c261a /bindings/php5
parentdd81d977610946d80da6dd21354bf9696d9251cb (diff)
downloadlasso-180fb41fa7c786dbc58974171c861efcbba5d542.tar.gz
lasso-180fb41fa7c786dbc58974171c861efcbba5d542.tar.xz
lasso-180fb41fa7c786dbc58974171c861efcbba5d542.zip
* When --enable-debugging is used, add -Wno-xxx options to AM_CFLAGS so that
bindings compile with -Werror (-Werror is activated by --enable-debugging now)
Diffstat (limited to 'bindings/php5')
-rw-r--r--bindings/php5/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/php5/Makefile.am b/bindings/php5/Makefile.am
index c316e07b..b40bf95a 100644
--- a/bindings/php5/Makefile.am
+++ b/bindings/php5/Makefile.am
@@ -1,7 +1,6 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = examples
-if PHP5_ENABLED
INCLUDES = \
-I$(top_builddir) \
-I$(top_srcdir) \
@@ -16,7 +15,10 @@ nodist_php_include_DATA = lasso.php
php_configdir=@PHP5_CONFIG_DIR@
php_config_DATA = lasso.ini
-lasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(PHP5_INCLUDES)
+lasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(PHP5_INCLUDES) $(AM_CFLAGS)
+if DEBUGGING
+lasso_la_CFLAGS += -Wno-unused-parameter
+endif
lasso_la_LDFLAGS = -export-dynamic -prefer-pic -module -avoid-version
lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) $(PHP5_LDFLAGS)
nodist_lasso_la_SOURCES = _lasso.c
@@ -39,6 +41,4 @@ clean-local:
.PHONY: doc
-endif
-
EXTRA_DIST = lasso.ini lang.py php_code.py wrapper_header.py wrapper_source.py __init__.py wrapper_source_top.c