Skip to content
Snippets Groups Projects
Commit fa2067e0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

-O2 on linux instead of -O3

parent 3f365a53
No related branches found
No related tags found
No related merge requests found
# $Id: Makefile,v 1.125 2001-08-08 14:30:33 remacle Exp $ # $Id: Makefile,v 1.126 2001-08-13 07:53:30 geuzaine Exp $
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Makefile for Gmsh # Makefile for Gmsh
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -416,10 +416,13 @@ motif_link_hp: ...@@ -416,10 +416,13 @@ motif_link_hp:
# Ready to compile for some platforms with FLTK # Ready to compile for some platforms with FLTK
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Warning: -O3 is known to produce incorrect code with gcc-2.95.2 on
# linux. Let's stick to -O2 for all public releases...
fltk_compile_little_endian: fltk_compile_little_endian:
@for i in $(GMSH_FLTK_DIR); do (cd $$i && $(MAKE) \ @for i in $(GMSH_FLTK_DIR); do (cd $$i && $(MAKE) \
"CC=$(CC)" \ "CC=$(CC)" \
"C_FLAGS=-O3" \ "C_FLAGS=-O2" \
"OS_FLAGS=-D_LITTLE_ENDIAN" \ "OS_FLAGS=-D_LITTLE_ENDIAN" \
"VERSION_FLAGS=-D_FLTK" \ "VERSION_FLAGS=-D_FLTK" \
"GL_INCLUDE=$(OPENGL_INC)" \ "GL_INCLUDE=$(OPENGL_INC)" \
...@@ -429,7 +432,7 @@ fltk_compile_little_endian: ...@@ -429,7 +432,7 @@ fltk_compile_little_endian:
fltk_compile_little_endian_2952: fltk_compile_little_endian_2952:
@for i in $(GMSH_FLTK_DIR); do (cd $$i && $(MAKE) \ @for i in $(GMSH_FLTK_DIR); do (cd $$i && $(MAKE) \
"CC=$(HOME)/gcc-2.95.2/bin/g++" \ "CC=$(HOME)/gcc-2.95.2/bin/g++" \
"C_FLAGS=-O3" \ "C_FLAGS=-O2" \
"OS_FLAGS=-D_LITTLE_ENDIAN" \ "OS_FLAGS=-D_LITTLE_ENDIAN" \
"VERSION_FLAGS=-D_FLTK" \ "VERSION_FLAGS=-D_FLTK" \
"GL_INCLUDE=$(OPENGL_INC)" \ "GL_INCLUDE=$(OPENGL_INC)" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment