mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
Simplify OpenBSD shared lib handling
This commit is contained in:
Vendored
+6
-1
@@ -8116,7 +8116,7 @@ fi
|
||||
LDDL_FLAGS="-shared ${LIB_SPECS}"
|
||||
;;
|
||||
|
||||
*-netbsd*|*-openbsd*)
|
||||
*-netbsd*)
|
||||
# Not available on all versions: check for include file.
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
||||
@@ -8132,6 +8132,11 @@ fi
|
||||
fi
|
||||
;;
|
||||
|
||||
*-openbsd*)
|
||||
SHLIB_CFLAGS="-fPIC"
|
||||
LDDL_FLAGS="-shared ${LIB_SPEC}"
|
||||
;;
|
||||
|
||||
*-nextstep*)
|
||||
LDDL_FLAGS="-nostdlib -r"
|
||||
;;
|
||||
|
||||
@@ -1643,7 +1643,7 @@ if test $usingTcl ; then
|
||||
LDDL_FLAGS="-shared ${LIB_SPECS}"
|
||||
;;
|
||||
|
||||
*-netbsd*|*-openbsd*)
|
||||
*-netbsd*)
|
||||
# Not available on all versions: check for include file.
|
||||
AC_CHECK_HEADER(dlfcn.h, test_ok=yes, test_ok=no)
|
||||
if test "$test_ok" = yes; then
|
||||
@@ -1652,6 +1652,11 @@ if test $usingTcl ; then
|
||||
fi
|
||||
;;
|
||||
|
||||
*-openbsd*)
|
||||
SHLIB_CFLAGS="-fPIC"
|
||||
LDDL_FLAGS="-shared ${LIB_SPEC}"
|
||||
;;
|
||||
|
||||
*-nextstep*)
|
||||
LDDL_FLAGS="-nostdlib -r"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user