mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 19:29:47 +02:00
Updates to get things compiling under linux properly with streflop
This commit is contained in:
@@ -22,13 +22,16 @@ if $(USE_STLPORT_DEBUG)
|
|||||||
# if using streflop then add some special compiler defines
|
# if using streflop then add some special compiler defines
|
||||||
if $(USE_STREFLOP)
|
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_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_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 += -Wall -W -Wno-unused -Wno-sign-compare ;
|
||||||
COMPILER_CFLAGS_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 += -O2 -DNDEBUG -Wall -W -Wno-unused -Wno-sign-compare ;
|
COMPILER_CXXFLAGS_optimize += -O3 -DNDEBUG -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -msse2 ;
|
||||||
COMPILER_LIBS_optimize += ;
|
COMPILER_LIBS_optimize += ;
|
||||||
COMPILER_CFLAGS_debug += -DDEBUG -g3 ;
|
COMPILER_CFLAGS_debug += -DDEBUG -g3 ;
|
||||||
COMPILER_CXXFLAGS_debug += -DDEBUG -g3 ;
|
COMPILER_CXXFLAGS_debug += -DDEBUG -g3 ;
|
||||||
|
@@ -269,7 +269,7 @@ int glestMain(int argc, char** argv){
|
|||||||
|
|
||||||
#ifdef USE_STREFLOP
|
#ifdef USE_STREFLOP
|
||||||
|
|
||||||
streflop_init<streflop::Double>();
|
streflop_init<streflop::Simple>();
|
||||||
printf("%s, STREFLOP enabled.\n",getNetworkVersionString().c_str());
|
printf("%s, STREFLOP enabled.\n",getNetworkVersionString().c_str());
|
||||||
#else
|
#else
|
||||||
printf("%s, STREFLOP NOT enabled.\n",getNetworkVersionString().c_str());
|
printf("%s, STREFLOP NOT enabled.\n",getNetworkVersionString().c_str());
|
||||||
|
Reference in New Issue
Block a user