Fix for linux

This actually is only for OS X. On linux ldconfig must be run after
installing in order to update the library cache. Need to look into how
to get scons to do this for the user.
This commit is contained in:
Joe Rozner 2013-11-21 12:50:03 -08:00
parent 1d80058c85
commit d0906e69e6

View file

@ -37,6 +37,7 @@ env.MergeFlags("-std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attr
if not env['PLATFORM'] == 'darwin':
env.MergeFlags("-lrt")
env.Append(SHLINKFLAGS = ['-install_name ' + '$TARGET'])
AddOption("--variant",
dest="variant",
@ -78,8 +79,6 @@ if os.getenv("CC") == "clang" or env['PLATFORM'] == 'darwin':
env.Replace(CC="clang",
CXX="clang++")
env.Append(SHLINKFLAGS = ['-install_name ' + '$TARGET'])
env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_"))
#rootpath = env['ROOTPATH'] = os.path.abspath('.')