Fix LC_ID_DYLIB for OS X
Wrapping the SHLINKFLAGS in an array rather than as a single string caused the link flags to be passed to clang double quoted. This cuased clang to interpret the flags as a string rather than as a flag which caused the -install_name flag to never be passed to the linker.
This commit is contained in:
parent
544f021849
commit
52bdc9d3dc
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ env.ScanReplace('libhammer.pc.in')
|
|||
env.MergeFlags("-std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes")
|
||||
|
||||
if env['PLATFORM'] == 'darwin':
|
||||
env.Append(SHLINKFLAGS = ['-install_name', '$TARGET'])
|
||||
env.Append(SHLINKFLAGS = '-install_name ' + env["libpath"] + '/${TARGET.file}')
|
||||
else:
|
||||
env.MergeFlags("-lrt")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue