1. Lars Yencken
  2. gpalign-cpp

Commits

Lars Yencken  committed 3b7057e

Fixed compilation on OS X, and pruned unnecessary Python dependencies.

On OS X the LIBRARY_PATH environment variable is crucial to ld finding
libraries in non-standard locations, for example those provided by macports. We
now pass this environment variable through to the environment.

  • Participants
  • Parent commits 6572773
  • Branches default

Comments (0)

Files changed (1)

File SConstruct

View file
  • Ignore whitespace
         print "Can't find standard math libraries."
         Exit(1)
 
+    if not conf.CheckLibWithHeader('cppunit', 'cppunit/ui/text/TestRunner.h', 'c++'):
+        print "Can't find cppunit."
+        Exit(1)
+
     env = conf.Finish()
 
     return env
 #----------------------------------------------------------------------------#
 
 # Set up the compilation environment.
-pythonVersion = sysconfig.get_config_var('VERSION')
 env = Environment(
-        CPPPATH=sysconfig.get_python_inc(),
-        LIBPATH=sysconfig.get_config_var('LIBPL'),
         SHLIBPREFIX='',
-        LIBS=['boost_python', 'python%s' % pythonVersion],
+        LIBS=[],
     )
 
 environmentVars = (
         'CPATH',
         'LD_LIBRARY_PATH',
+        'LIBRARY_PATH',
     )
 
 envDict = env['ENV']