diff --git a/build/config-linux-gcc-debug.py b/build/config-linux-gcc-debug.py index 3ce1fbb0..a21fa87f 100644 --- a/build/config-linux-gcc-debug.py +++ b/build/config-linux-gcc-debug.py @@ -4,7 +4,7 @@ BUILDDIR = '#build/debug' DISTDIR = '#dist' CXX = 'g++' CC = 'gcc' -CXXFLAGS = ['-O0', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fno-omit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2'] +CXXFLAGS = ['-O0', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fno-omit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2', '-std=c++11', '-fPIC'] LINKFLAGS = [] SHLINKFLAGS = ['-rdynamic', '-shared', '-fPIC', '-lstdc++'] BASEINCLUDE = ['#include'] @@ -19,8 +19,8 @@ XERCESLIB = ['xerces-c'] GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11'] GLFLAGS = ['-DGLEW_MX'] BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread'] -COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4'] -COLLADALIB = ['collada14dom', 'xml2'] +COLLADAINCLUDE = ['/usr/include/collada-dom2.4', '/usr/include/collada-dom2.4/1.4'] +COLLADALIB = ['collada-dom2.4-dp'] FFTWLIB = ['fftw3_threads', 'fftw3'] # The following runs a helper script to search for installed Python diff --git a/build/config-linux-gcc.py b/build/config-linux-gcc.py index 77c9b753..8443a4a7 100644 --- a/build/config-linux-gcc.py +++ b/build/config-linux-gcc.py @@ -19,8 +19,8 @@ XERCESLIB = ['xerces-c'] GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11'] GLFLAGS = ['-DGLEW_MX'] BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread'] -COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4'] -COLLADALIB = ['collada14dom', 'xml2'] +COLLADAINCLUDE = ['/usr/include/collada-dom2.4', '/usr/include/collada-dom2.4/1.4'] +COLLADALIB = ['collada-dom2.4-dp'] FFTWLIB = ['fftw3_threads', 'fftw3'] # The following runs a helper script to search for installed Python @@ -33,4 +33,3 @@ import sys, os sys.path.append(os.path.abspath('../data/scons')) from detect_python import detect_python locals().update(detect_python()) - diff --git a/src/libcore/thread.cpp b/src/libcore/thread.cpp index e3484698..dca266b9 100644 --- a/src/libcore/thread.cpp +++ b/src/libcore/thread.cpp @@ -633,9 +633,7 @@ void Thread::initializeOpenMP(size_t threadCount) { } const std::string threadName = "Mitsuba: " + thread->getName(); - #if defined(__LINUX__) - prctl(PR_SET_NAME, threadName.c_str()); - #elif defined(__OSX__) + #if defined(__LINUX__) || defined(__OSX__) pthread_setname_np(threadName.c_str()); #elif defined(__WINDOWS__) SetThreadName(threadName.c_str());