[ https://issues.apache.org/jira/browse/TS-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009851#comment-14009851 ]
Masakazu Kitajo commented on TS-2839: ------------------------------------- I've looked into it. The first patch is OK. Please land it as is. According to man pages, OSX's ld accepts only "-rpath xxx" format. GNU ld accepts both "--rpath=xxx" and "-rpath xxx" format. So, we should use the latter format on OSX. Then we don't need to check which ld is used. > tsxs doesn't work on OSX > ------------------------ > > Key: TS-2839 > URL: https://issues.apache.org/jira/browse/TS-2839 > Project: Traffic Server > Issue Type: Improvement > Components: Tools > Reporter: Masakazu Kitajo > Fix For: 5.0.0 > > > When I specify -L option to tsxs on OS X, I get these error messages below. > {noformat} > $ tsxs -L/somewhere/lib -o test.so test.cc > compiling test.cc -> test.lo > linking -> test.so > ld: warning: directory not found for option '-L/somewhere/lib' > ld: unknown option: --rpath=/somewhere/lib > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > tsxs: link failed: cc -bundle -flat_namespace -undefined suppress > -L/somewhere/lib -Wl,--rpath=/somewhere/lib -o test.so test.lo > {noformat} > It seems that two dashes and a equal sign for rpath are not supported on OS > X's ld. -- This message was sent by Atlassian JIRA (v6.2#6252)