Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 13 Apr 2014 18:22:11 UTC Commit: 1c2cb01bf37527ab0084cdfa97f6d52fc8e76331 https://github.com/geany/geany-plugins/commit/1c2cb01bf37527ab0084cdfa97f6d5...
Log Message: ----------- geanypy: check for C compiler flags before using them
Check for custom C compiler flags and only used them if available, not to break build on a compiler that don't understand them.
Modified Paths: -------------- build/geanypy.m4 geanypy/src/Makefile.am
Modified: build/geanypy.m4 7 files changed, 7 insertions(+), 0 deletions(-) =================================================================== @@ -17,6 +17,13 @@ AC_DEFUN([GP_CHECK_GEANYPY], AC_DEFINE_UNQUOTED([GEANYPY_PYTHON_LIBRARY], ["$PYTHON_LIBRARY"], [Location of Python library to dlopen()]) + + dnl check for C flags we wish to use + GEANYPY_CFLAGS= + for flag in -fno-strict-aliasing -Wno-write-strings; do + GP_CHECK_CFLAG([$flag], [GEANYPY_CFLAGS="${GEANYPY_CFLAGS} $flag"]) + done + AC_SUBST([GEANYPY_CFLAGS]) ]) GP_COMMIT_PLUGIN_STATUS([Geanypy]) AC_CONFIG_FILES([
Modified: geanypy/src/Makefile.am 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -8,7 +8,7 @@ geanypy_la_CPPFLAGS = @GEANY_CFLAGS@ @PYGTK_CFLAGS@ @PYTHON_CPPFLAGS@ \ -DGEANYPY_PYTHON_DIR=""$(libdir)/geany/geanypy"" \ -DGEANYPY_PLUGIN_DIR=""$(datadir)/geany/geanypy/plugins"" \ -UHAVE_CONFIG_H -geanypy_la_CFLAGS = -fno-strict-aliasing -Wno-write-strings +geanypy_la_CFLAGS = @GEANYPY_CFLAGS@ geanypy_la_LIBADD = @GEANY_LIBS@ @PYGTK_LIBS@ @PYTHON_LDFLAGS@ \ @PYTHON_EXTRA_LIBS@ @PYTHON_EXTRA_LDFLAGS@ geanypy_la_SOURCES = geanypy-app.c \
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org