vp-build/common/build-style
maxice8 6580c8d657
build_style/meson.sh: export CFLAGS and CXXFLAGS from host
meson when compiling something with 'native: true' (for building
executables that are meant to be run on the host system) uses CFLAGS
and CXXFLAGS environment variables, we "pollute" them with
TARGET system cflags/cxxflags, such as -march= for the cross-compiled
arch.

so to fix it we export CFLAGS and CXXFLAGS to be CFLAGS_host and
CXXFLAGS_host respectively, they are set by XBPS and correspond to
the XBPS_CFLAGS/XBPS_CXXFLAGS. This same set of changes is also done
with CC and CXX see L#61

this was found when cross-compiling lighttpd which created the
'lemon' executable to generate inputs

thanks to @Cogitri from Exherbo for helping me debug this

[ci skip]
2018-08-16 01:49:38 -03:00
..
cmake.sh
configure.sh
fetch.sh
gnu-configure.sh
gnu-makefile.sh
go.sh
haskell-stack.sh
meson.sh build_style/meson.sh: export CFLAGS and CXXFLAGS from host 2018-08-16 01:49:38 -03:00
meta.sh
perl-module.sh
perl-ModuleBuild.sh
python-module.sh
python2-module.sh
python3-module.sh
qmake.sh
R-cran.sh
README
ruby-module.sh
scons.sh
slashpackage.sh
waf.sh build-styles/waf{,3}: make sure waf uses the correct python version 2018-08-09 19:53:32 +02:00
waf3.sh build-styles/waf{,3}: make sure waf uses the correct python version 2018-08-09 19:53:32 +02:00

BUILD STYLES
============

These shell snippets provide support for multiple build systems, i.e GNU configure,
CMake, etc. A build style file must provide at least the following functions:

	- do_configure
	- do_build
	- do_install

If a source package defines its own do_xxx() function, the function defined in
the build style file is simply ignored.