You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Wilfredo Sanchez <ws...@apple.com> on 1998/10/20 00:36:23 UTC
[Patch: Configure]
When I'm building apache fat (multi-architecture), I do it by invoking
configure like so:
CFLAGS="-arch ppc -arch i386 -g -O3 -pipe" \
LFLAGS="-arch ppc -arch i386" \
configure ...
Which I thought worked until people complained that the DSO loadables
were not building for Intel. The following patch fixes that. I was
hoping that this would work:
LDFLAGS_SHLIB="$LDFLAGS -bundle -undefined suppress"
But it turns out that Configure doesn't have the same notion of
LDFLAGS that configure does, and that caused me some confusion, so this
fix passes the job on to make, which seems somewhat inconsistant, but
does the job.
Note that for GNU projects I invoke make also with CFLAGS= and
LDFLAGS= set in the environment, but that makes apache's Makefiles
unhappy. Not a real problem for me, but if the goal of APACI is to
have consistant behaviour with respect to autoconf, that make be of
interest. (I don't know if that's a goal.)
-Fred
Index: apache/src/Configure
===================================================================
RCS file: /CVSRoot/CoreOS/Services/apache/apache/src/Configure,v
retrieving revision 1.18
diff -u -d -b -w -r1.18 Configure
--- Configure 1998/10/02 00:41:50 1.18
+++ Configure 1998/10/19 22:19:56
@@ -916,7 +916,7 @@
*-apple-rhapsody*)
LD_SHLIB="cc"
CFLAGS_SHLIB=""
- LDFLAGS_SHLIB="-bundle -undefined suppress"
+ LDFLAGS_SHLIB='$(EXTRA_LDFLAGS) -bundle -undefined suppress'
LDFLAGS_SHLIB_EXPORT=""
SHLIB_SUFFIX_DEPTH=0
;;
---
Wilfredo Sanchez | wsanchez@apple.com | 408.974-5174
Apple Computer, Inc., 1 Infinite Loop 302.4K, Cupertino, CA 95014
(Mac OS X) Core Operating Systems Group | BSD