Skip to content

Commit fdb4198

Browse files
author
DennisOSRM
committed
Further adjustments for OS X
1 parent 3f7437f commit fdb4198

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SConstruct

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import os.path
5+
import string
56
import sys
67
from subprocess import call
78

@@ -61,7 +62,7 @@ conf = Configure(env, custom_tests = { 'CheckBoost' : CheckBoost, 'CheckProtobuf
6162

6263
if GetOption('cxx') is None:
6364
#default Compiler
64-
print 'Using default C++ Compiler: ', env['CXX']
65+
print 'Using default C++ Compiler: ', env['CXX'].strip()
6566
else:
6667
env.Replace(CXX = GetOption('cxx'))
6768
print 'Using user supplied C++ Compiler: ', env['CXX']
@@ -74,7 +75,8 @@ else:
7475
if sys.platform == 'darwin': #Mac OS X
7576
#os x default installations
7677
env.Append(CPPPATH = ['/usr/include/libxml2'] )
77-
env.Append(CPPPATH = ["/usr/X11/include"]) #comes with os x
78+
env.Append(CPPPATH = ['/usr/X11/include']) #comes with os x
79+
env.Append(LIBPATH = ['/usr/X11/lib']) #needed for libpng
7880

7981
#assume stxxl and boost are installed via homebrew. call brew binary to get folder locations
8082
import subprocess
@@ -104,7 +106,7 @@ else:
104106
Exit(-1)
105107

106108
#Check if architecture optimizations shall be turned off
107-
if GetOption('buildconfiguration') != 'debug' and GetOption('nomarch') == None:
109+
if GetOption('buildconfiguration') != 'debug' and GetOption('nomarch') == None and sys.platform != 'darwin':
108110
env.Append(CCFLAGS = ['-march=native'])
109111

110112
if not conf.CheckHeader('omp.h'):

0 commit comments

Comments
 (0)