]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
With OpenBSD 3.1 and up, allow modules to work on their
authorJim Jagielski <jim@apache.org>
Mon, 17 Jun 2002 17:07:49 +0000 (17:07 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 17 Jun 2002 17:07:49 +0000 (17:07 +0000)
 ELF-based architectures.

PR:
Obtained from:
Submitted by: Brad <brad@openbsd.org>
Reviewed by: Jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95727 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/Configure

index 7b34fbaeecd1a54fb7c01d30abcfdac40fe97d50..fe4ea2340ae08ec4569031ddcad43de0301d15bf 100644 (file)
@@ -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 <brad@openbsd.org>]
+
   *) Add X-Forwarded-Host and X-Forwarded-Server to X-Forwarded-For
      to the proxy. [Thomas Eibner <thomas@stderr.net>]
 
index fe078f7f5d6661d5c629f9d652b3a97c55c9c7ea..8dfac609aea55a5eece78fa70e1d657acebb9ce7 100755 (executable)
@@ -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