configure: bugfixes and cleanups for CFLAGS
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 0 repliesNew
- v14 patches 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | configure: cleanup invocation of submodule MakeMakefile | +15 | 0 replies | |
| 2/4 | configure: cleanup CFLAGS and LDFLAGS for submodulesMakefile configure meson.build | +19 | 0 replies | |
| 3/4 | configure: do not clobber environment CFLAGS/CXXFLAGS/LDFLAGSconfigure | +17 | 0 replies | |
| 4/4 | configure: consistently pass CFLAGS/CXXFLAGS/LDFLAGS to mesonconfigure meson.build | +27 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/4] configure: bugfixes and cleanups for CFLAGS
Meson is placing -pie after -shared rather than before, and this causes linking to fail while building the ArchLinux package for QEMU.
But why is -pie ending up in the flags? Because LDFLAGS is an environment variable, and changes to environment variables propagate when configure does
LDFLAGS="-pie $LDFLAGS"
This happens without having to export the env. var again.
The solution is to simply rename the CFLAGS and LDFLAGS variables used for flags that Meson takes care of by itself. The CFLAGS variable was previously used for submodules as well, so patches 1 and 2 fix that as well.
I'm keeping Richard's reviewed-by since the changes are pretty obvious from v1.
v1->v2: include -fno-pie flags as well, since tests/tcg needs them
handle empty CFLAGS and LDFLAGS too
place flags in the built-in options section of the cross file
Paolo Bonzini (4):
configure: cleanup invocation of submodule Make
configure: cleanup CFLAGS and LDFLAGS for submodules
configure: do not clobber environment CFLAGS/CXXFLAGS/LDFLAGS
configure: consistently pass CFLAGS/CXXFLAGS/LDFLAGS to meson
Makefile | 23 +++++++++------- configure | 75 ++++++++++++++++++++++++++++++++++------------------- meson.build | 13 +++++++++- 3 files changed, 74 insertions(+), 37 deletions(-)
Signature · 1 line
2.26.2