changeset 18960:a5add7b660ac stable

build: Fix compiling GUI on Alpha platforms (bug #42839). * libgui/Makefile.am: Use GNU Makefile filter-out command to remove -mieee CFLAG option from CPPFLAGS passed to MOC command.
author Rik <rik@octave.org>
date Sat, 26 Jul 2014 07:50:38 -0700
parents 87cba451fd5e
children 625e3bb65885
files libgui/Makefile.am
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/Makefile.am	Thu Jul 24 17:37:45 2014 +0100
+++ b/libgui/Makefile.am	Sat Jul 26 07:50:38 2014 -0700
@@ -22,6 +22,10 @@
 
 MOC_CPPFLAGS =
 
+## Fix for bug #42839 where -mieee CFLAG option is added to CPPFLAGS by gnulib.
+## Eventually gnulib will be appropriately fixed and this hack removed.
+MOC_OCTAVE_CPPFLAGS = $(filter-out -mieee, $(AM_CPPFLAGS) $(CPPFLAGS))
+
 octlib_LTLIBRARIES = liboctgui.la
 
 TRANSLATIONS = \
@@ -91,7 +95,7 @@
 ( echo '#ifdef HAVE_CONFIG_H'; \
   echo '#include <config.h>'; \
   echo '#endif'; \
-  $(MOC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $(liboctgui_la_CPPFLAGS) $< ) > $@-t
+  $(MOC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(liboctgui_la_CPPFLAGS) $< ) > $@-t
 mv $@-t $@
 endef