From: Jim Jagielski Date: Mon, 17 Jun 2002 17:07:49 +0000 (+0000) Subject: With OpenBSD 3.1 and up, allow modules to work on their X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d50989366cd07c8d0884f4d2d36959e82e0ca246;p=thirdparty%2Fapache%2Fhttpd.git With OpenBSD 3.1 and up, allow modules to work on their ELF-based architectures. PR: Obtained from: Submitted by: Brad Reviewed by: Jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95727 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index 7b34fbaeecd..fe4ea2340ae 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 1.3.25 + *) PORT: With OpenBSD 3.1 and up, allow modules to work on their + ELF-based architectures. [Brad ] + *) Add X-Forwarded-Host and X-Forwarded-Server to X-Forwarded-For to the proxy. [Thomas Eibner ] diff --git a/src/Configure b/src/Configure index fe078f7f5d6..8dfac609aea 100755 --- a/src/Configure +++ b/src/Configure @@ -1130,6 +1130,9 @@ if [ "x$using_shlib" = "x1" ] ; then *) LD_SHLIB="gcc" LDFLAGS_SHLIB="-shared \$(CFLAGS_SHLIB)" + if [ "x`echo __ELF__ | $CC -E - | grep __ELF__`" = "x" ]; then + LDFLAGS_SHLIB_EXPORT="-Wl,-E" + fi ;; esac LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB