Use strip -x on OS/X-darwin because non-"-x" causes link problems:

http://archives.postgresql.org/pgsql-hackers/2007-10/msg01470.php
This commit is contained in:
Bruce Momjian 2007-11-10 16:15:23 +00:00
parent d009992ba3
commit 58ac0f92c0
1 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
# $PostgreSQL: pgsql/config/install-sh,v 1.4 2006/03/11 04:38:28 momjian Exp $
# $PostgreSQL: pgsql/config/install-sh,v 1.5 2007/11/10 16:15:23 momjian Exp $
scriptversion=2005-02-02.21
@ -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}"