Re: [PHP4BETA] make CFLAGS="-some -Weird -Flags" stopped working
| From: | thies at digicol dot de | Date: | Wed, 15 Mar 2000 02:53:19 +0000 |
| Subject: | Re: [PHP4BETA] make CFLAGS="-some -Weird -Flags" stopped working | ||
| References: | 1 2 3 4 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12135@lists.php.net to get a copy of this message | ||
On Wed, Mar 15, 2000 at 03:41:44AM +0100, Sascha Schumann wrote:
> On Wed, Mar 15, 2000 at 03:33:26AM +0100, thies@digicol.de wrote:
> > On Wed, Mar 15, 2000 at 03:22:46AM +0100, Sascha Schumann wrote:
> > > On Wed, Mar 15, 2000 at 03:08:01AM +0100, thies@digicol.de wrote:
> > > >
> > > > because it overwrites
> > > >
> > > > CFLAGS = -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
> > > >
> > > > in config_vars.
> > > >
> > > > maybe we should add an OPTIM= option (like apache)
> > > > that allows on eto play with compiler-options whitout
> > > > fiddleing with the makefiles - sascha?
> > >
> > > That would mean that we would also have to pass the option
> > > down to all bundled libraries. I don't think automake
> > > supports OPTIM or something similar.
> >
> > i thought we no longer used automake. anyhow - i don't care
> > (really) for the bundled mysql and expat - but everything
>
> We are talking about Zend and TSRM.
>
> > that makes php "alive" i'd like to recompile with different
> > optimisation levels without having to look into the
> > config_vars to find the "current" setting.
> >
> > maybe we could move stuff like " -D_POSIX_PTHREAD_SEMANTICS
> > -D_REENTRANT " into php_config.h that way CFLAGS would be
> > free (again) to set the compiler-options at make-time.
>
> They should be in CPPFLAGS.
i used to do: (in my conf.sh)
CFLAGS="-O6 -g -Wall" ../php4/configure -bla -blu
that doesn't work anymore 'cause -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT are needed for compilation (solaris 7)
overwritten by the CFLAGS.
so you're saying we should move _all_ defines in CPPFLAGS -
great! so CFLAGS will be free for this again.
you you have a look this - dear mr. configure?;-)
btw: where are u? (should be 3am in germany right now...)
>
> - Sascha
>
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany