Skip to content
Snippets Groups Projects
Commit 52bdc9d3 authored by Joe Rozner's avatar Joe Rozner
Browse files

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.
parent 544f0218
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment