diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 13:57:34 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 13:57:34 +0000 |
commit | 180fb41fa7c786dbc58974171c861efcbba5d542 (patch) | |
tree | 648854ec7a972831f1ab7eb656d50736160c261a /bindings | |
parent | dd81d977610946d80da6dd21354bf9696d9251cb (diff) | |
download | lasso-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')
-rw-r--r-- | bindings/java/Makefile.am | 8 | ||||
-rw-r--r-- | bindings/php5/Makefile.am | 8 | ||||
-rw-r--r-- | bindings/python/Makefile.am | 2 |
3 files changed, 10 insertions, 8 deletions
diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am index eddfbd4c..620d20d5 100644 --- a/bindings/java/Makefile.am +++ b/bindings/java/Makefile.am @@ -1,5 +1,4 @@ MAINTAINERCLEANFILES = Makefile.in -if JAVA_ENABLED INCLUDES = \ -I$(top_builddir) \ -I$(top_srcdir) \ @@ -41,7 +40,11 @@ doc: com_entrouvert_lasso_LassoJNI.h: com/entrouvert/lasso/LassoJNI.class $(java_lasso_source_files:.java=.class) $(JAVAH) $(JAVAH_FLAGS) -classpath . `echo $< | sed 'su/u.ug;su.classuu'` -libjnilasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) @JAVA_INCLUDE@ +libjnilasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(AM_CFLAGS) @JAVA_INCLUDE@ +if DEBUGGING +libjnilasso_la_CFLAGS += -Wno-unused-parameter +endif + libjnilasso_la_LDFLAGS = -export-dynamic -prefer-pic -module -avoid-version libjnilasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) nodist_libjnilasso_la_SOURCES = com_entrouvert_lasso_LassoJNI.c @@ -92,5 +95,4 @@ AllJunitTests: $(test_source_files:.java=.class) chmod +x $@ endif -endif 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 diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 933b50b9..fdc7ada7 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -12,7 +12,7 @@ nodist_python_DATA = lasso.py python_LTLIBRARIES = _lasso.la nodist__lasso_la_SOURCES = _lasso.c -_lasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) $(PY_CFLAGS) +_lasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) $(PY_CFLAGS) $(AM_CFLAGS) _lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) if DARWIN _lasso_la_LDFLAGS = -no-undefined -module -avoid-version -Wl,-F. -Wl,-F. -bundle -framework Python |