Fix nan issue in features
[trackerpp.git] / SConstruct
index b2e7560..414727d 100644 (file)
@@ -8,7 +8,7 @@ AddOption('--all', dest='all', action='store_true', help='Build all include test
 
 env = Environment(CXX="g++", 
                 CPPPATH=['#include'],
-                CCFLAGS=['-Wall', '-std=c++11', '-O3'])
+                CCFLAGS=['-Wall', '-std=c++11', '-O2'])
 
 env['ENV']['TERM'] = os.environ['TERM']
 
@@ -17,6 +17,7 @@ env.ParseConfig("pkg-config --libs opencv log4cpp")
 env.ParseConfig("python-config --cflags --libs")
 env.Append(LIBS = ['pthread', 'boost_python'])
 env['CCFLAGS'].remove('-Wstrict-prototypes') # invalid in C++
+env['CCFLAGS'].remove('-g') 
 
 env.Append(LIBPATH=['#.'])