summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-01-29 09:27:41 -0800
committerMark Adler <madler@alumni.caltech.edu>2012-01-29 09:48:11 -0800
commit5461db945cc64e16b717b3fdeeb58bd58810576e (patch)
tree77cdd0e64d2a3a3256f95c8d7f24db02f91057a4 /configure
parent22eb01184fd2d33b482a289d0bb08b2e2b0c5a18 (diff)
downloadzlib-5461db945cc64e16b717b3fdeeb58bd58810576e.tar.gz
Use the -m option on ldconfig for BSD systems [Tobias].
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index e2e5a70..780317c 100755
--- a/configure
+++ b/configure
@@ -172,8 +172,11 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) >> configure.log 2>&1; then
uname=`(uname -s || echo unknown) 2>/dev/null`
fi
case "$uname" in
- Linux* | linux* | GNU | GNU/* | *BSD | *bsd* | DragonFly | solaris*)
+ Linux* | linux* | GNU | GNU/* | solaris*)
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;;
+ *BSD | *bsd* | DragonFly)
+ LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"}
+ LDCONFIG="ldconfig -m" ;;
CYGWIN* | Cygwin* | cygwin* | OS/2*)
EXE='.exe' ;;
MINGW* | mingw*)