[Lunar-commits] <moonbase-other> octave: build fix for gcc 4.8

v4hn me at v4hn.de
Wed Apr 17 18:31:14 CEST 2013


commit 0c9f089ac884ffd841c22374878bddfe5c699755
Author: v4hn <me at v4hn.de>
Date: Wed, 17 Apr 2013 09:26:41 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/0c9f089ac884ffd841c22374878bddfe5c699755

octave: build fix for gcc 4.8
---
  science/octave/BUILD | +15/-15   
  1 file changed, 15 insertions(+), 15 deletions(-)

--- a/science/octave/BUILD
+++ b/science/octave/BUILD
@@ -1,21 +1,21 @@
-(
-  #dvi generation dies with less then 2GB RAM with current texlive installation
-  OPTS+=" --disable-docs" &&
+#dvi generation dies with less then 2GB RAM with current texlive installation
+OPTS+=" --disable-docs" &&
 
-  #needed for SuiteSparse 4.0.0
-  #this should be fixed in the next release of octave
-  sedit "s:\(\$(octave_LDADD) \$(LIBS)\):\1 -lsuitesparseconfig -lrt:" src/Makefile.in &&
-  bad_flags ",--as-needed" &&
+# fix for gcc 4.8 - this is fixed in the next release
+sedit "/#include \"mexproto.h\"/ d" src/mex.h &&
+sedit "s:#define mxMAXNAME 64:\0\n\n#include \"mexproto.h\":" src/mex.h &&
 
+#needed for SuiteSparse 4.0.0
+#this should be fixed in the next release of octave
+sedit "s:\(\$(octave_LDADD) \$(LIBS)\):\1 -lsuitesparseconfig -lrt:" src/Makefile.in &&
+bad_flags ",--as-needed" &&
 
-  sedit "s:suitesparse:SuiteSparse:g" configure &&
+sedit "s:suitesparse:SuiteSparse:g" configure &&
 
-  if in_depends $MODULE SuiteSparse ; then
-    export LIBS+=" -lcamd -lmetis"
-  fi &&
+if in_depends $MODULE SuiteSparse ; then
+  export LIBS+=" -lcamd -lmetis"
+fi &&
 
-  CXXFLAGS="-lpthread" &&
+CXXFLAGS="-lpthread" &&
 
-  default_build
-
-) > $C_FIFO 2>&1
+default_build




More information about the Lunar-commits mailing list