2023-06-03 17:48:09 +00:00
|
|
|
export CFLAGS="-Os -fstack-clash-protection -Wformat -Werror=format-security"
|
2023-08-21 11:34:34 +00:00
|
|
|
export CXXFLAGS="-Os -fstack-clash-protection -Wformat -Werror=format-security"
|
2023-09-03 23:56:15 +00:00
|
|
|
export CXXFLAGS="$CXXFLAGS -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1"
|
2021-01-09 21:34:19 +00:00
|
|
|
export LDFLAGS="-Wl,--as-needed,-O1,--sort-common"
|
2022-04-01 20:57:06 +00:00
|
|
|
export GOFLAGS="-buildmode=pie -modcacherw -trimpath -buildvcs=false"
|
2020-07-03 09:50:22 +00:00
|
|
|
# Do note that these should work with at least GDC and LDC
|
|
|
|
export DFLAGS="-Os"
|
2008-10-18 08:09:24 +00:00
|
|
|
|
2021-04-23 07:50:08 +00:00
|
|
|
export JOBS=$(nproc)
|
2010-01-07 19:56:12 +00:00
|
|
|
export MAKEFLAGS=-j$JOBS
|
2020-09-03 09:54:47 +00:00
|
|
|
export SAMUFLAGS=-j$JOBS
|
2021-04-23 07:50:08 +00:00
|
|
|
export CARGO_BUILD_JOBS=$JOBS
|
2024-10-07 20:20:19 +00:00
|
|
|
export CMAKE_BUILD_PARALLEL_LEVEL=$JOBS
|
2021-10-07 06:17:47 +00:00
|
|
|
export CTEST_PARALLEL_LEVEL=$JOBS
|
2008-11-08 11:05:45 +00:00
|
|
|
|
2022-02-06 02:26:16 +00:00
|
|
|
export CARGO_PROFILE_RELEASE_OPT_LEVEL="s"
|
|
|
|
export CARGO_PROFILE_RELEASE_PANIC="abort"
|
|
|
|
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
|
|
|
export CARGO_PROFILE_RELEASE_LTO="true"
|
2023-03-12 11:18:51 +00:00
|
|
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
2022-02-06 02:26:16 +00:00
|
|
|
|
2024-10-07 20:20:19 +00:00
|
|
|
export CTEST_OUTPUT_ON_FAILURE=ON
|
|
|
|
export CTEST_NO_TESTS_ACTION=error
|
|
|
|
|
|
|
|
export PERL_MM_USE_DEFAULT=1
|
|
|
|
|
2010-11-19 09:48:53 +00:00
|
|
|
SRCDEST=/var/cache/distfiles
|
2008-11-27 17:45:48 +00:00
|
|
|
|
2009-01-22 09:08:50 +00:00
|
|
|
# The package will be stored as $REPODEST/$repo/$pkgname-$pkgver-r$pkgrel.apk
|
|
|
|
# where $repo is the name of the parent directory of $startdir.
|
2013-08-01 12:16:57 +00:00
|
|
|
REPODEST=$HOME/packages/
|
2009-01-29 11:56:03 +00:00
|
|
|
|
2013-08-01 12:16:57 +00:00
|
|
|
# what to clean up after a successful build
|
2017-04-05 13:28:13 +00:00
|
|
|
CLEANUP="srcdir bldroot pkgdir deps"
|
2013-08-01 12:16:57 +00:00
|
|
|
|
|
|
|
# what to cleanup after a failed build
|
2017-04-05 13:28:13 +00:00
|
|
|
ERROR_CLEANUP="bldroot deps"
|