Commit graph

7 commits

Author SHA1 Message Date
Jürgen Buchmüller
272114cd05 xbps-src: trying to fix FFLAGS construction
This still isn't perfect. When the common/xbps-src/shutils/chroot.sh
function chroot_init() is called, the value for $XBPS_FFLAGS, which is
defined in common/build-profiles/bootstrap.sh, is empty.

Put the immediate value into the generated /etc/xbps/xbps-src.conf
file until someone finds out where passing the value of $XBPS_FFLAGS
throughout the scripts is missing.
2017-03-08 17:36:22 +01:00
Juan RP
33a2ce7cb0 New package: cross-armv7l-linux-musleabihf for armv7hf-musl. 2015-05-17 08:01:04 +02:00
Juan RP
50a116d27a xbps-src: set default compiler/preprocessor/linker flags via etc/conf.
Rather than setting them in the build profile, just set them in
etc/defaults.conf (overridable via etc/conf) to simplify the code.

- Also enable _FORTIFY_SOURCE=2 in CPPFLAGS.
- Also enable -z,relro in LDFLAGS.

As suggested by @chneukirchen.
2015-03-04 15:18:46 +01:00
Juan RP
2f9f85e3f5 build-profiles: *-musl: enable -fstack-protector-strong. 2015-02-07 11:37:44 +01:00
Juan RP
17ea528f46 common/build-profiles/armv7l-musl.sh: gnueabihf -> musleabi. 2014-11-11 22:27:35 +01:00
Juan RP
9a168e4463 xbps-src: introduce XBPS_TRIPLET and set it in the build-profiles.
This is for cases where host does not match build environment (x86_64 building for x86).
So we just force build/host triplet in native builds.
2014-11-11 22:24:40 +01:00
Juan RP
c2bd01c8d3 xbps-src: introduce build profiles and use it by default.
common/build-profiles contains the compilation flags used in native
builds, and are defined per architecture:

	- x86_64 (glibc)
	- x86_64-musl (musl)

If XBPS_CFLAGS or XBPS_CXXFLAGS are set in `etc/conf`, the settings
from the build profile will be overrided.
2014-11-10 11:17:34 +01:00