Skip to content

Commit 58ac0f9

Browse files
committed
Use strip -x on OS/X-darwin because non-"-x" causes link problems:
http://archives.postgresql.org/pgsql-hackers/2007-10/msg01470.php
1 parent d009992 commit 58ac0f9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

config/install-sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# install - install a program, script, or datafile
33

4-
# $PostgreSQL: pgsql/config/install-sh,v 1.4 2006/03/11 04:38:28 momjian Exp $
4+
# $PostgreSQL: pgsql/config/install-sh,v 1.5 2007/11/10 16:15:23 momjian Exp $
55

66
scriptversion=2005-02-02.21
77

@@ -56,7 +56,13 @@ cpprog="${CPPROG-cp}"
5656
chmodprog="${CHMODPROG-chmod}"
5757
chownprog="${CHOWNPROG-chown}"
5858
chgrpprog="${CHGRPPROG-chgrp}"
59-
stripprog="${STRIPPROG-strip}"
59+
# Darwin normal strip removes symbols from shared libraries
60+
# that are later needed for dynamic linking, so use strip -x.
61+
# http://archives.postgresql.org/pgsql-hackers/2007-10/msg01470.php
62+
if test "$template" = "darwin"
63+
then stripprog="${STRIPPROG-strip -x}"
64+
else stripprog="${STRIPPROG-strip}"
65+
fi
6066
rmprog="${RMPROG-rm}"
6167
mkdirprog="${MKDIRPROG-mkdir}"
6268

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy