Lines 242-254
tc-stack-grows-down() {
Link Here
|
242 |
# Export common build related compiler settings. |
242 |
# Export common build related compiler settings. |
243 |
tc-export_build_env() { |
243 |
tc-export_build_env() { |
244 |
tc-export "$@" |
244 |
tc-export "$@" |
245 |
# Some build envs will initialize vars like: |
245 |
if tc-is-cross-compiler; then |
246 |
# : ${BUILD_LDFLAGS:-${LDFLAGS}} |
246 |
# Some build envs will initialize vars like: |
247 |
# So make sure all variables are non-empty. #526734 |
247 |
# : ${BUILD_LDFLAGS:-${LDFLAGS}} |
248 |
: ${BUILD_CFLAGS:=-O1 -pipe} |
248 |
# So make sure all variables are non-empty. #526734 |
249 |
: ${BUILD_CXXFLAGS:=-O1 -pipe} |
249 |
: ${BUILD_CFLAGS:=-O1 -pipe} |
250 |
: ${BUILD_CPPFLAGS:= } |
250 |
: ${BUILD_CXXFLAGS:=-O1 -pipe} |
251 |
: ${BUILD_LDFLAGS:= } |
251 |
: ${BUILD_CPPFLAGS:= } |
|
|
252 |
: ${BUILD_LDFLAGS:= } |
253 |
else |
254 |
# https://bugs.gentoo.org/654424 |
255 |
: ${BUILD_CFLAGS:=$CFLAGS} |
256 |
: ${BUILD_CXXFLAGS:=$CXXFLAGS} |
257 |
: ${BUILD_CPPFLAGS:=$CPPFLAGS} |
258 |
: ${BUILD_LDFLAGS:=$LDFLAGS} |
259 |
fi |
252 |
export BUILD_{C,CXX,CPP,LD}FLAGS |
260 |
export BUILD_{C,CXX,CPP,LD}FLAGS |
253 |
|
261 |
|
254 |
# Some packages use XXX_FOR_BUILD. |
262 |
# Some packages use XXX_FOR_BUILD. |
255 |
- |
|
|