common: rename FCC to FC and introduce FFLAGS
This commit is contained in:
parent
6d0d142d15
commit
60603dd0a5
4 changed files with 6 additions and 0 deletions
|
@ -7,3 +7,4 @@ for a specific architecture:
|
|||
- XBPS_TRIPLET (the compiler triplet)
|
||||
- XBPS_CFLAGS (C compiler flags for host compiler)
|
||||
- XBPS_CXXFLAGS (C++ compiler flags for the host compiler)
|
||||
- XBPS_FFLAGS (Fortran compiler flags for the host compiler)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
XBPS_CFLAGS="-O2 -pipe"
|
||||
XBPS_CXXFLAGS="$XBPS_CFLAGS"
|
||||
XBPS_FFLAGS="-fPIC -pipe"
|
||||
|
|
|
@ -17,6 +17,7 @@ XBPS_CFLAGS="$XBPS_CFLAGS"
|
|||
XBPS_CXXFLAGS="$XBPS_CXXFLAGS"
|
||||
XBPS_CPPFLAGS="$XBPS_CPPFLAGS"
|
||||
XBPS_LDFLAGS="$XBPS_LDFLAGS"
|
||||
XBPS_FFLAGS="$XBPS_FFLAGS"
|
||||
XBPS_HOSTDIR=/host
|
||||
_EOF
|
||||
|
||||
|
|
|
@ -382,12 +382,14 @@ setup_pkg() {
|
|||
export CXXFLAGS="$XBPS_TARGET_CXXFLAGS $XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"
|
||||
export CPPFLAGS="$XBPS_TARGET_CPPFLAGS $XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
|
||||
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_CFLAGS="$XBPS_CFLAGS"
|
||||
export BUILD_CXXFLAGS="$XBPS_CXXFLAGS"
|
||||
export BUILD_CPPFLAGS="$XBPS_CPPFLAGS"
|
||||
export BUILD_LDFLAGS="$XBPS_LDFLAGS"
|
||||
export BUILD_FFLAGS="$XBPS_FFLAGS"
|
||||
|
||||
export CC_FOR_BUILD="cc"
|
||||
export CXX_FOR_BUILD="g++"
|
||||
|
@ -398,6 +400,7 @@ setup_pkg() {
|
|||
export CXXFLAGS_FOR_BUILD="$XBPS_CXXFLAGS"
|
||||
export CPPFLAGS_FOR_BUILD="$XBPS_CPPFLAGS"
|
||||
export LDFLAGS_FOR_BUILD="$XBPS_LDFLAGS"
|
||||
export FFLAGS_FOR_BUILD="$XBPS_FFLAGS"
|
||||
|
||||
if [ -n "$cross" ]; then
|
||||
# Regular tools names
|
||||
|
|
Loading…
Reference in a new issue