Skip to content

Commit

Permalink
-install_name is understood by OS X clang compiler
Browse files Browse the repository at this point in the history
There is no need to use -Wl, to pass "-install_name" to the linker.
Clang on OS X already knows how to do this so the command line looks
cleaner without it.
  • Loading branch information
timj committed Apr 11, 2016
1 parent 2125cb9 commit c996057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/sconsUtils/state.py
Expand Up @@ -172,7 +172,7 @@ def _initEnvironment():
if env['PLATFORM'] == 'darwin':
env['LDMODULESUFFIX'] = ".so"
if not re.search(r"-install_name", str(env['SHLINKFLAGS'])):
env.Append(SHLINKFLAGS=["-Wl,-install_name", "-Wl,${TARGET.file}"])
env.Append(SHLINKFLAGS=["-install_name", "${TARGET.file}"])
if not re.search(r"-headerpad_max_install_names", str(env['SHLINKFLAGS'])):
env.Append(SHLINKFLAGS=["-Wl,-headerpad_max_install_names"])
#
Expand Down

0 comments on commit c996057

Please sign in to comment.