$OpenBSD: patch-configure,v 1.1.1.1 2003/10/14 20:26:08 marcm Exp $ --- configure.orig Mon Jun 2 11:13:24 2003 +++ configure Mon Jun 9 17:04:03 2003 @@ -6289,8 +6289,8 @@ else hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-R$libdir' export_dynamic_flag_spec='${wl}-E' else case "$host_os" in @@ -6299,8 +6299,8 @@ else hardcode_libdir_flag_spec='-R$libdir' ;; *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-R$libdir' ;; esac fi