$OpenBSD: patch-configure,v 1.9 2011/03/07 19:31:10 ajacoutot Exp $ --- configure.orig Fri Feb 18 17:29:20 2011 +++ configure Mon Feb 21 10:29:08 2011 @@ -2725,7 +2725,7 @@ for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do + for ac_prog in mkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( @@ -10147,7 +10147,6 @@ openbsd*) *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in @@ -13153,6 +13152,12 @@ case "$host" in NO_UNDEFINED_LDFLAGS="-no-undefined" ;; + *-*-openbsd*) + NO_UNDEFINED_FLAGS="" + VERSION_SCRIPT_FLAGS=-Wl,--version-script= + `ld --help 2>&1 | grep -- --version-script >/dev/null` || \ + VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," + ;; *) NO_UNDEFINED_FLAGS="-Wl,--no-undefined" VERSION_SCRIPT_FLAGS=-Wl,--version-script=