common: rename FCC to FC and introduce FFLAGS

This commit is contained in:
Jürgen Buchmüller 2017-03-08 16:03:59 +01:00
parent 6d0d142d15
commit 60603dd0a5
4 changed files with 6 additions and 0 deletions

View file

@ -7,3 +7,4 @@ for a specific architecture:
- XBPS_TRIPLET (the compiler triplet) - XBPS_TRIPLET (the compiler triplet)
- XBPS_CFLAGS (C compiler flags for host compiler) - XBPS_CFLAGS (C compiler flags for host compiler)
- XBPS_CXXFLAGS (C++ compiler flags for the host compiler) - XBPS_CXXFLAGS (C++ compiler flags for the host compiler)
- XBPS_FFLAGS (Fortran compiler flags for the host compiler)

View file

@ -1,2 +1,3 @@
XBPS_CFLAGS="-O2 -pipe" XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS" XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_FFLAGS="-fPIC -pipe"

View file

@ -17,6 +17,7 @@ XBPS_CFLAGS="$XBPS_CFLAGS"
XBPS_CXXFLAGS="$XBPS_CXXFLAGS" XBPS_CXXFLAGS="$XBPS_CXXFLAGS"
XBPS_CPPFLAGS="$XBPS_CPPFLAGS" XBPS_CPPFLAGS="$XBPS_CPPFLAGS"
XBPS_LDFLAGS="$XBPS_LDFLAGS" XBPS_LDFLAGS="$XBPS_LDFLAGS"
XBPS_FFLAGS="$XBPS_FFLAGS"
XBPS_HOSTDIR=/host XBPS_HOSTDIR=/host
_EOF _EOF

View file

@ -382,12 +382,14 @@ setup_pkg() {
export CXXFLAGS="$XBPS_TARGET_CXXFLAGS $XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags" export CXXFLAGS="$XBPS_TARGET_CXXFLAGS $XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"
export CPPFLAGS="$XBPS_TARGET_CPPFLAGS $XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS" export CPPFLAGS="$XBPS_TARGET_CPPFLAGS $XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
export LDFLAGS="$XBPS_TARGET_LDFLAGS $XBPS_LDFLAGS $XBPS_CROSS_LDFLAGS $LDFLAGS" export LDFLAGS="$XBPS_TARGET_LDFLAGS $XBPS_LDFLAGS $XBPS_CROSS_LDFLAGS $LDFLAGS"
export FFLAGS="$XBPS_TARGET_FFLAGS $XBPS_FFLAGS $XBPS_CROSS_FFLAGS $FFLAGS"
export BUILD_CC="cc" export BUILD_CC="cc"
export BUILD_CFLAGS="$XBPS_CFLAGS" export BUILD_CFLAGS="$XBPS_CFLAGS"
export BUILD_CXXFLAGS="$XBPS_CXXFLAGS" export BUILD_CXXFLAGS="$XBPS_CXXFLAGS"
export BUILD_CPPFLAGS="$XBPS_CPPFLAGS" export BUILD_CPPFLAGS="$XBPS_CPPFLAGS"
export BUILD_LDFLAGS="$XBPS_LDFLAGS" export BUILD_LDFLAGS="$XBPS_LDFLAGS"
export BUILD_FFLAGS="$XBPS_FFLAGS"
export CC_FOR_BUILD="cc" export CC_FOR_BUILD="cc"
export CXX_FOR_BUILD="g++" export CXX_FOR_BUILD="g++"
@ -398,6 +400,7 @@ setup_pkg() {
export CXXFLAGS_FOR_BUILD="$XBPS_CXXFLAGS" export CXXFLAGS_FOR_BUILD="$XBPS_CXXFLAGS"
export CPPFLAGS_FOR_BUILD="$XBPS_CPPFLAGS" export CPPFLAGS_FOR_BUILD="$XBPS_CPPFLAGS"
export LDFLAGS_FOR_BUILD="$XBPS_LDFLAGS" export LDFLAGS_FOR_BUILD="$XBPS_LDFLAGS"
export FFLAGS_FOR_BUILD="$XBPS_FFLAGS"
if [ -n "$cross" ]; then if [ -n "$cross" ]; then
# Regular tools names # Regular tools names