On Wed, Jun 16, 2021 at 03:53:02PM +0200, Alexander Dahl wrote:
> Am Wed, Jun 16, 2021 at 03:00:31PM +0200 schrieb Michael Olbrich:
> > On Wed, Jun 16, 2021 at 02:22:01PM +0200, Alexander Dahl wrote:
> > > What I need is something containing the CFLAGS already set by ptxdist
> > > through various variables (like platform hardening options) to pass it
> > > on to the handcrafted ./configure which does not consider the CFLAGS
> > > environment variable.
> > 
> > Why do you need to pass those to the configure script? All CFLAGS will be
> > automatically added when the compiler is called. Or is there some code in
> > the configure script that scans the CFLAGS manually?
> 
> Oh okay. So the compiler wrapper handles this? That was a lack of
> knowledge on my site then.

Yes, any CFLAGS from PTXdist will seem like compiler defaults to the
configure script etc.

> I was just confused, because if you build ppp by yourself without
> ptxdist, you have to call `./configure --cflags="WHATEVERCFLAGS"` to
> have ppp's configure do the right thing.

There are a lot of packages out there with various ways to specify the
CFLAGS and sometimes surprising side effects. To avoid all this we have the
wrappers and add all the flags there.

Michael


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to