Commits

Paul O'Neil committed 854d3fe

Add python libraries to link options on OSX

Comments (0)

Files changed (1)

     return os.path.join(get_config_var('LIBPL'),get_config_var('LIBRARY'))
 
 _isPlatWin = sys.platform.lower().startswith('win') or _isPlatCygwin
+_isPlatOSX = sys.platform.lower() == 'darwin'
 
 _infraDir = os.path.join(os.path.dirname(__file__), 'infrastructure')
 
             self._exeLinkOpts = []
         if _isPlatWin:
             self._linkOpts = []
+        elif _isPlatOSX:
+            self._linkOpts = ['-shared', '-L/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a']
         else:
             self._linkOpts = ['-shared','-defaultlib=libphobos2.so']
         # _includeOpts