mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
Updates to get things compiling under linux properly with streflop
This commit is contained in:
parent
7b9036345b
commit
63aff0751c
@ -22,13 +22,16 @@ if $(USE_STLPORT_DEBUG)
|
||||
# if using streflop then add some special compiler defines
|
||||
if $(USE_STREFLOP)
|
||||
{
|
||||
COMPILER_CFLAGS_optimize += -mfpmath=sse -msse -fsingle-precision-constant -frounding-math -pipe -fno-strict-aliasing -fsignaling-nans -mieee-fp -mno-tls-direct-seg-refs ;
|
||||
COMPILER_CXXFLAGS_optimize += -mfpmath=sse -msse -fsingle-precision-constant -frounding-math -pipe -fno-strict-aliasing -fsignaling-nans -mieee-fp -mno-tls-direct-seg-refs ;
|
||||
# COMPILER_CFLAGS_optimize += -mfpmath=sse -msse -fsingle-precision-constant -frounding-math -pipe -fno-strict-aliasing -fsignaling-nans -mieee-fp -mno-tls-direct-seg-refs ;
|
||||
# COMPILER_CXXFLAGS_optimize += -mfpmath=sse -msse -fsingle-precision-constant -frounding-math -pipe -fno-strict-aliasing -fsignaling-nans -mieee-fp -mno-tls-direct-seg-refs ;
|
||||
COMPILER_CFLAGS_optimize += -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -msse2 ;
|
||||
COMPILER_CXXFLAGS_optimize += -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -msse2 ;
|
||||
|
||||
}
|
||||
|
||||
COMPILER_CFLAGS += -Wall -W -Wno-unused -Wno-sign-compare ;
|
||||
COMPILER_CFLAGS_optimize += -O2 -DNDEBUG -Wall -W -Wno-unused -Wno-sign-compare ;
|
||||
COMPILER_CXXFLAGS_optimize += -O2 -DNDEBUG -Wall -W -Wno-unused -Wno-sign-compare ;
|
||||
COMPILER_CFLAGS_optimize += -O3 -DNDEBUG -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -msse2 ;
|
||||
COMPILER_CXXFLAGS_optimize += -O3 -DNDEBUG -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -msse2 ;
|
||||
COMPILER_LIBS_optimize += ;
|
||||
COMPILER_CFLAGS_debug += -DDEBUG -g3 ;
|
||||
COMPILER_CXXFLAGS_debug += -DDEBUG -g3 ;
|
||||
|
@ -269,7 +269,7 @@ int glestMain(int argc, char** argv){
|
||||
|
||||
#ifdef USE_STREFLOP
|
||||
|
||||
streflop_init<streflop::Double>();
|
||||
streflop_init<streflop::Simple>();
|
||||
printf("%s, STREFLOP enabled.\n",getNetworkVersionString().c_str());
|
||||
#else
|
||||
printf("%s, STREFLOP NOT enabled.\n",getNetworkVersionString().c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user