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.
This commit is contained in:
Juan RP 2014-11-10 11:15:53 +01:00
parent aa4d7feb93
commit c2bd01c8d3
11 changed files with 27 additions and 4 deletions

View file

@ -0,0 +1,2 @@
XBPS_CFLAGS="-O2 -pipe -fstack-protector -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
XBPS_CXXFLAGS="$XBPS_CFLAGS"