Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 2, 2019

While it is already possible to set CFLAGS and LDFLAGS (actually all
variables) from the environment for nmake (by passing the /E
option), it is not possible to add any (C|LD)FLAGS, which can be
useful in some cases. Instead of allowing this for nmake, we add
support for additional custom (C|LD)FLAGS to configure, similar to
how that works on Linux, so one could actually write:

set CFLAGS=foo & set LDFLAGS=bar & configure

This also allows us to use these flags during configure.

While it is already possible to *set* CFLAGS and LDFLAGS (actually all
variables) from the environment for `nmake` (by passing the `/E`
option), it is not possible to *add* any (C|LD)FLAGS, which can be
useful in some cases.  Instead of allowing this for `nmake`, we add
support for additional custom (C|LD)FLAGS to `configure`, similar to
how that works on Linux, so one could actually write:
````
set CFLAGS=foo & set LDFLAGS=bar & configure
````
This also allows us to use these flags during configure.
@cmb69
Copy link
Member Author

cmb69 commented Jul 2, 2019

cc @weltling, @KalleZ

@KalleZ
Copy link
Member

KalleZ commented Jul 2, 2019

LGTM

@cmb69
Copy link
Member Author

cmb69 commented Jul 3, 2019

If there are no objections, I'll merge this on 2019-07-08 (so it makes it into PHP 7.4.0alpha3).

@cmb69
Copy link
Member Author

cmb69 commented Jul 8, 2019

Applied as 338e1b2. Thanks!

@cmb69 cmb69 closed this Jul 8, 2019
@cmb69 cmb69 deleted the cflags-ldflags branch July 8, 2019 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants