diff options
author | Sverker Eriksson <[email protected]> | 2014-02-04 17:59:28 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-02-04 17:59:28 +0100 |
commit | 89d02dad7e698bba986bc30668ac515da2a53f5d (patch) | |
tree | 329b99236fa334b8e3458114c0d8053497bfbbd3 /lib/test_server/src/configure.in | |
parent | fdcdaca338849d7f63d4300e489318f6ee275d82 (diff) | |
download | otp-89d02dad7e698bba986bc30668ac515da2a53f5d.tar.gz otp-89d02dad7e698bba986bc30668ac515da2a53f5d.tar.bz2 otp-89d02dad7e698bba986bc30668ac515da2a53f5d.zip |
test_server: Fix dynlib link command for openbsd
The old command failed with unresolved symbol __guard_local
Diffstat (limited to 'lib/test_server/src/configure.in')
-rw-r--r-- | lib/test_server/src/configure.in | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/lib/test_server/src/configure.in b/lib/test_server/src/configure.in index 067663feb4..cd723bcd4d 100644 --- a/lib/test_server/src/configure.in +++ b/lib/test_server/src/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script for Erlang. dnl dnl %CopyrightBegin% dnl -dnl Copyright Ericsson AB 1997-2013. All Rights Reserved. +dnl Copyright Ericsson AB 1997-2014. All Rights Reserved. dnl dnl The contents of this file are subject to the Erlang Public License, dnl Version 1.1, (the "License"); you may not use this file except in @@ -170,7 +170,30 @@ case $system in fi SHLIB_EXTRACT_ALL="" ;; - *-netbsd*|*-freebsd*|*-openbsd*|*-dragonfly*) + *-openbsd*) + # Not available on all versions: check for include file. + AC_CHECK_HEADER(dlfcn.h, [ + SHLIB_CFLAGS="-fpic" + SHLIB_LD="${CC}" + SHLIB_LDFLAGS="$LDFLAGS -shared" + SHLIB_SUFFIX=".so" + if test X${enable_m64_build} = Xyes; then + AC_MSG_ERROR(don't know how to link 64-bit dynamic drivers) + fi + if test X${enable_m32_build} = Xyes; then + AC_MSG_ERROR(don't know how to link 32-bit dynamic drivers) + fi + ], [ + # No dynamic loading. + SHLIB_CFLAGS="" + SHLIB_LD="ld" + SHLIB_LDFLAGS="" + SHLIB_SUFFIX="" + AC_MSG_ERROR(don't know how to compile and link dynamic drivers) + ]) + SHLIB_EXTRACT_ALL="" + ;; + *-netbsd*|*-freebsd*|*-dragonfly*) # Not available on all versions: check for include file. AC_CHECK_HEADER(dlfcn.h, [ SHLIB_CFLAGS="-fpic" |