[
https://issues.apache.org/jira/browse/TS-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008089#comment-14008089
]
Masakazu Kitajo commented on TS-2839:
-------------------------------------
Modifying tsxs like this makes me happy, but we should check which ld is used.
{code}
diff --git a/tools/tsxs.in b/tools/tsxs.in
index a224914..ec66ab7 100755
--- a/tools/tsxs.in
+++ b/tools/tsxs.in
@@ -122,7 +122,7 @@ case $host in
MODULELD="$CC -bundle -flat_namespace -undefined suppress"
MODULELDXX="$CXX -bundle -flat_namespace -undefined suppress"
MODULEEXT=bundle
- RLDFLAG="-Wl,--rpath="
+ RLDFLAG="-Wl,-rpath "
;;
*-*-solaris*)
PICFLAGS="-fpic"
{code}
> tsxs doesn't work on OSX
> ------------------------
>
> Key: TS-2839
> URL: https://issues.apache.org/jira/browse/TS-2839
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Masakazu Kitajo
>
> When I specify -L option to tsxs on OS X, I get these error messages below.
> {noformat}
> $ tsxs -L/somewhere/lib -o test.cc 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)