Use strip -x on OS/X-darwin because non-"-x" causes link problems:
authorBruce Momjian <bruce@momjian.us>
Sat, 10 Nov 2007 16:15:23 +0000 (16:15 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 10 Nov 2007 16:15:23 +0000 (16:15 +0000)
  http://archives.postgresql.org/pgsql-hackers/2007-10/msg01470.php

config/install-sh

index 30595ae5aa6484b299c154fd13fe5f8c76284b43..cb2628d8a3a85df1e265c7ee0cf6bc18de473ca0 100755 (executable)
@@ -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}"