diff --git a/scripts/configure b/scripts/configure index 9b341cb4..0441cac8 100755 --- a/scripts/configure +++ b/scripts/configure @@ -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" ;; diff --git a/scripts/configure.in b/scripts/configure.in index cac7b9fd..6518f98f 100644 --- a/scripts/configure.in +++ b/scripts/configure.in @@ -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" ;;