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
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>]
*)
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