Permalink
Browse files

octave: build fix for gcc 4.8

  • Loading branch information...
1 parent 0af1c59 commit 0c9f089ac884ffd841c22374878bddfe5c699755 @v4hn v4hn committed Apr 17, 2013
Showing with 15 additions and 15 deletions.
  1. +15 −15 science/octave/BUILD
View
@@ -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

0 comments on commit 0c9f089

Please sign in to comment.