Blame vars.env.d/100.toolchain.env

bf1a83
#
bf1a83
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂ­a Andrea Illanes Albornoz <lucia@luciaillanes.de>
bf1a83
#
bf1a83
# WARNING: Do _NOT_ use whitespaces (` ') or tab (`	')
bf1a83
# characters in any of the variables below save for MAKEFLAGS,
bf1a83
# PATH, and TIMESTAMP_FMT.
bf1a83
#
bf1a83
# ${PREFIX_{CROSS,MINGW32,MINIPIX,NATIVE,RPM}} and ${BUILD_WORKDIR}
bf1a83
# must be immediately beneath ${PREFIX}. ${PREFIX} must be o+rwx.
bf1a83
# The variables mentioned should not be forward slash-terminated.
bf1a83
#
bf1a83
bf1a83
#
bf1a83
# Default toolchain flags & variables
bf1a83
: ${DEFAULT_BUILD_CPUS:=};
bf1a83
: ${DEFAULT_BUILD_TYPE:=native};
bf1a83
bf1a83
#
bf1a83
# Default C compiler flags & variables
bf1a83
: ${DEFAULT_CFLAGS_DEBUG:="-D_REDIR_TIME64=0 -g2 -O0"};
bf1a83
: ${DEFAULT_CFLAGS_DEBUG_HOST:="-D_REDIR_TIME64=0 -g0 -O2"};
bf1a83
: ${DEFAULT_CFLAGS_DEBUG_RUNTIME:="-D_REDIR_TIME64=0 -g3 -O0"};
bf1a83
: ${DEFAULT_CFLAGS_RELEASE:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
: ${DEFAULT_CFLAGS_RELEASE_HOST:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
: ${DEFAULT_CFLAGS_RELEASE_RUNTIME:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
rtl_get_var_unsafe \$DEFAULT_CFLAGS -u "DEFAULT_CFLAGS_${BUILD_KIND}";
bf1a83
: ${DEFAULT_CFLAGS_CONFIGURE:=${DEFAULT_CFLAGS}};
bf1a83
rtl_get_var_unsafe \$DEFAULT_CFLAGS_HOST -u "DEFAULT_CFLAGS_${BUILD_KIND}_HOST";
bf1a83
rtl_get_var_unsafe \$DEFAULT_CFLAGS_RUNTIME -u "DEFAULT_CFLAGS_${BUILD_KIND}_RUNTIME";
bf1a83
bf1a83
#
bf1a83
# Default C preprocessor flags & variables
bf1a83
: ${DEFAULT_CPPFLAGS_DEBUG:="-D_REDIR_TIME64=0 -g2 -O0"};
bf1a83
: ${DEFAULT_CPPFLAGS_DEBUG_HOST:="-D_REDIR_TIME64=0 -g0 -O2"};
bf1a83
: ${DEFAULT_CPPFLAGS_DEBUG_RUNTIME:="-D_REDIR_TIME64=0 -g3 -O0"};
bf1a83
: ${DEFAULT_CPPFLAGS_RELEASE:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
: ${DEFAULT_CPPFLAGS_RELEASE_HOST:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
: ${DEFAULT_CPPFLAGS_RELEASE_RUNTIME:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
rtl_get_var_unsafe \$DEFAULT_CPPFLAGS -u "DEFAULT_CPPFLAGS_${BUILD_KIND}";
bf1a83
: ${DEFAULT_CPPFLAGS_CONFIGURE:=${DEFAULT_CPPFLAGS}};
bf1a83
rtl_get_var_unsafe \$DEFAULT_CPPFLAGS_HOST -u "DEFAULT_CPPFLAGS_${BUILD_KIND}_HOST";
bf1a83
rtl_get_var_unsafe \$DEFAULT_CPPFLAGS_RUNTIME -u "DEFAULT_CPPFLAGS_${BUILD_KIND}_RUNTIME";
bf1a83
bf1a83
#
bf1a83
# Default C++ compiler flags & variables
bf1a83
: ${DEFAULT_CXXFLAGS_DEBUG:="-D_REDIR_TIME64=0 -g2 -O0"};
bf1a83
: ${DEFAULT_CXXFLAGS_DEBUG_HOST:="-D_REDIR_TIME64=0 -g0 -O2"};
bf1a83
: ${DEFAULT_CXXFLAGS_DEBUG_RUNTIME:="-D_REDIR_TIME64=0 -g3 -O0"};
bf1a83
: ${DEFAULT_CXXFLAGS_RELEASE:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
: ${DEFAULT_CXXFLAGS_RELEASE_HOST:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
: ${DEFAULT_CXXFLAGS_RELEASE_RUNTIME:="-D_REDIR_TIME64=0 -g0 -O0"};
bf1a83
rtl_get_var_unsafe \$DEFAULT_CXXFLAGS -u "DEFAULT_CXXFLAGS_${BUILD_KIND}";
bf1a83
: ${DEFAULT_CXXFLAGS_CONFIGURE:=${DEFAULT_CXXFLAGS}};
bf1a83
rtl_get_var_unsafe \$DEFAULT_CXXFLAGS_HOST -u "DEFAULT_CXXFLAGS_${BUILD_KIND}_HOST";
bf1a83
rtl_get_var_unsafe \$DEFAULT_CXXFLAGS_RUNTIME -u "DEFAULT_CXXFLAGS_${BUILD_KIND}_RUNTIME";
bf1a83
bf1a83
#
bf1a83
# Default linker flags & variables
bf1a83
: ${DEFAULT_LDFLAGS_DEBUG:=""};
bf1a83
: ${DEFAULT_LDFLAGS_DEBUG_HOST:=""};
bf1a83
: ${DEFAULT_LDFLAGS_DEBUG_RUNTIME:=""};
bf1a83
: ${DEFAULT_LDFLAGS_RELEASE:=""};
bf1a83
: ${DEFAULT_LDFLAGS_RELEASE_HOST:=""};
bf1a83
: ${DEFAULT_LDFLAGS_RELEASE_RUNTIME:=""};
bf1a83
rtl_get_var_unsafe \$DEFAULT_LDFLAGS -u "DEFAULT_LDFLAGS_${BUILD_KIND}";
bf1a83
: ${DEFAULT_LDFLAGS_CONFIGURE:=${DEFAULT_LDFLAGS}};
bf1a83
rtl_get_var_unsafe \$DEFAULT_LDFLAGS_HOST -u "DEFAULT_LDFLAGS_${BUILD_KIND}_HOST";
bf1a83
rtl_get_var_unsafe \$DEFAULT_LDFLAGS_RUNTIME -u "DEFAULT_LDFLAGS_${BUILD_KIND}_RUNTIME";
bf1a83
bf1a83
# vim:filetype=sh textwidth=0