Skip to content

Instantly share code, notes, and snippets.

@pavoljuhas
Last active April 5, 2016 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavoljuhas/ee2530df6303e9221b603b6b478040bc to your computer and use it in GitHub Desktop.
Save pavoljuhas/ee2530df6303e9221b603b6b478040bc to your computer and use it in GitHub Desktop.
sconscript.local for diffpy.srreal
# vim: ft=python
import sys
import os.path
Import('env')
env.CacheDir('/tmp/my-scons-cache')
includedir = sys.prefix + '/include'
libdir = sys.prefix + '/lib'
env.Prepend(CXXFLAGS=['-mmacosx-version-min=10.6'])
env.Prepend(CPPPATH=[includedir], LIBPATH=[libdir])
env.Prepend(LINKFLAGS="-Wl,-rpath," + libdir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment