From: Jim Jagielski Date: Thu, 11 Jan 2001 19:25:29 +0000 (+0000) Subject: Begining stub of NONAC_LDFLAGS and NONAC_CFLAGS stuff. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9fd8830c49a44d43519471ef3dba60dab006d43;p=apache Begining stub of NONAC_LDFLAGS and NONAC_CFLAGS stuff. First of all, avoid re-adding values to the various hints each time called (not a problem now, but could be later). Then build up CFLAGS/LDFLAGS during Makefile generation. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87655 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/fastgen.sh b/build/fastgen.sh index 347fb14250..673377227a 100755 --- a/build/fastgen.sh +++ b/build/fastgen.sh @@ -87,6 +87,8 @@ top_builddir = $top_builddir srcdir = $top_srcdir/$dir builddir = $top_builddir/$dir VPATH = $top_srcdir/$dir +NONAC_CFLAGS = "$NONAC_CFLAGS" +NONAC_LDFLAGS = "$NONAC_LDFLAGS" EOF test -z "$dir" && dir="." diff --git a/build/rules.mk b/build/rules.mk index 26d4cfc0ff..81df4cf00e 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -59,7 +59,7 @@ include $(top_builddir)/config_vars.mk # Compile commands COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) -COMPILE = $(CC) $(COMMON_FLAGS) $(CFLAGS) $(EXTRA_CFLAGS) +COMPILE = $(CC) $(COMMON_FLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(NONAC_CFLAGS) CXX_COMPILE = $(CXX) $(COMMON_FLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) SH_COMPILE = $(SH_LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@ @@ -70,9 +70,9 @@ LT_CXX_COMPILE = $(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@ # Link-related commands -LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(LDFLAGS) -o $@ -SH_LINK = $(SH_LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(LDFLAGS) -o $@ -MOD_LINK = $(LIBTOOL) --mode=link $(COMPILE) -module $(LTFLAGS) $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(LDFLAGS) $(NONAC_LDFLAGS) -o $@ +SH_LINK = $(SH_LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(LDFLAGS) $(NONAC_LDFLAGS) -o $@ +MOD_LINK = $(LIBTOOL) --mode=link $(COMPILE) -module $(LTFLAGS) $(LDFLAGS) $(NONAC_LDFLAGS) -o $@ # Cross compile commands diff --git a/hints.m4 b/hints.m4 index bf9202373d..93b5a32539 100644 --- a/hints.m4 +++ b/hints.m4 @@ -5,9 +5,12 @@ dnl Preload various ENV/makefile paramsm such as CC, CFLAGS, etc dnl based on outside knowledge dnl AC_DEFUN(APACHE_PRELOAD, [ -echo "Applying hints file rules for $host" +if test "$DID_APACHE_PRELOAD" != "yes" ; then + DID_APACHE_PRELOAD="yes"; export DID_APACHE_PRELOAD -case "$host" in + echo "Applying Apache hints file rules for $host" + + case "$host" in *-apple-aux3*) APR_SETVAR(APACHE_MPM, [prefork]) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1]) @@ -49,6 +52,7 @@ dnl ;; APR_SETVAR(APACHE_MPM, [beos]) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1]) ;; -esac -APR_DOEXTRA + esac + APR_DOEXTRA +fi ])