We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8150a80 commit 5d0cdbcCopy full SHA for 5d0cdbc
src/SConscript
@@ -83,10 +83,12 @@ Alias('lib', libobjcryst)
83
prefix = env['prefix']
84
85
# install-lib
86
-libinstall = Install(env['libdir'], libobjcryst)
+libinstall = env.Install(env['libdir'], libobjcryst)
87
if env['PLATFORM'] == 'darwin':
88
+ # DARWIN_INSTALL_NAME can be pre-set in sconscript.local
89
+ env.SetDefault(DARWIN_INSTALL_NAME='$TARGET.abspath')
90
env.AddPostAction(libinstall,
- 'install_name_tool -id $TARGET.abspath $TARGET')
91
+ 'install_name_tool -id $DARWIN_INSTALL_NAME $TARGET')
92
if env['PLATFORM'] == 'posix' and WhereIs('ldconfig'):
93
opts = ''
94
if os.getuid() != 0: opts = '-n'
0 commit comments