From d0906e69e6a3cd17e68b43eb83b8e0b522f02fe8 Mon Sep 17 00:00:00 2001 From: Joe Rozner <joe@prevoty.com> Date: Thu, 21 Nov 2013 12:50:03 -0800 Subject: [PATCH] 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. --- SConstruct | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 0512d71a..c46c0904 100644 --- a/SConstruct +++ b/SConstruct @@ -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('.') -- GitLab