httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [SUGGEST] make should pass compile flags
Date Tue, 19 Aug 1997 12:38:14 GMT
Hrmm... I thought it _did_. If not, then it's definately wrong

Martin Kraemer wrote:
> 
> 
> --ELM871991650-666-1_
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> 
> When currently I try to hunt down a bug (core dump in authentication), I
> need an apache with -g debug symbols. It used to be possible to generate
> one by doing:
>     > rm http_request.o
>     > make OPTIM=-g
> This doesn't work anymore since the top level make doesn't pass the OPTIM
> settings to the subordinate make's. One solution is right now
>     > rm core/http_request.o
>     > make MAKE="make OPTIM=-g"
> but this is rather clumsy. Shouldn't all of src/Makefile's macros...
>     CC=
>     CFLAGS=
>     LIBS=
>     INCLUDES=
>     LDFLAGS=
> be passed down to lower make's? It seems to be done correctly for
> regex/libregex.a and modules/, but not for support/, core/ and os/.
> 
> Find a suggested patch passing CC, RANLIB and CFLAGS appended to this mail.
> 
>     Martin
> -- 
> | S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
> | ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
> | N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
> ~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
> 
> --ELM871991650-666-1_
> Content-Type: text/plain; charset=US-ASCII
> Content-Disposition: attachment; filename=m
> Content-Description: patch to Makefile.tmpl
> Content-Transfer-Encoding: 7bit
> 
> --- src/Makefile.tmpl.orig	Thu Aug 14 14:18:28 1997
> +++ src/Makefile.tmpl	Tue Aug 19 13:50:28 1997
> @@ -44,13 +44,13 @@
>  support: support-dir
>  
>  support-dir:
> -	cd support; $(MAKE)
> +	cd support; $(MAKE) CC='$(CC)' AUX_CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)'
>  
>  core-dir:
> -	cd core; $(MAKE)
> +	cd core; $(MAKE) CC='$(CC)' AUX_CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)'
>  
>  os-dir:	
> -	cd $(OSDIR); $(MAKE)
> +	cd $(OSDIR); $(MAKE) CC='$(CC)' AUX_CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)'
>  
>  clean:
>  	rm -f httpd *.o $(OBJS) 
> 
> --ELM871991650-666-1_--
> 


-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
            "Look at me! I'm wearing a cardboard belt!"

Mime
View raw message