diff options
author | Bruce Momjian | 2007-11-10 16:15:23 +0000 |
---|---|---|
committer | Bruce Momjian | 2007-11-10 16:15:23 +0000 |
commit | b5bb1ca8cd1d5164b473db2a6ea9e3687af505e0 (patch) | |
tree | c197260128e58ba8dba563a752721dcef6d66b14 | |
parent | ad0af5369dba411d966ee283d35842b565116fea (diff) |
Use strip -x on OS/X-darwin because non-"-x" causes link problems:
http://archives.postgresql.org/pgsql-hackers/2007-10/msg01470.php
-rwxr-xr-x | config/install-sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/install-sh b/config/install-sh index 30595ae5aa..cb2628d8a3 100755 --- a/config/install-sh +++ b/config/install-sh @@ -56,7 +56,13 @@ cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" +# Darwin normal strip removes symbols from shared libraries +# that are later needed for dynamic linking, so use strip -x. +# http://archives.postgresql.org/pgsql-hackers/2007-10/msg01470.php +if test "$template" = "darwin" +then stripprog="${STRIPPROG-strip -x}" +else stripprog="${STRIPPROG-strip}" +fi rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" |