diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-04-08 18:31:04 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-04-10 15:02:07 +0200 |
commit | d118ec221dd5fc829d2170c257e10b8159dce274 (patch) | |
tree | 8ff5b8c0b68632ea682e8765ed30f7b93a5e8581 /libphobos/configure.ac | |
parent | 32703b80f66f7ca504eb79bee7e745f22cf096a8 (diff) | |
download | gcc-d118ec221dd5fc829d2170c257e10b8159dce274.tar.gz |
libphobos: Build runtime library with -ffunction-sections -fdata-sections
Tests for `-ffunction-sections -fdata-sections' and sets SECTION_FLAGS
accordingly. If there is no warning when using it, take advantage of
the smaller executables that can be had with `--gc-sections'.
libphobos/ChangeLog:
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.ac: Call DRUNTIME_SECTION_FLAGS.
* libdruntime/Makefile.am: Add SECTION_FLAGS to AM_DFLAGS.
* libdruntime/Makefile.in: Regenerate.
* m4/druntime.m4 (DRUNTIME_SECTION_FLAGS): New macro.
* src/Makefile.am: Add SECTION_FLAGS to AM_DFLAGS.
* src/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'libphobos/configure.ac')
-rw-r--r-- | libphobos/configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libphobos/configure.ac b/libphobos/configure.ac index 248d0ebbc19..3b5a830cccf 100644 --- a/libphobos/configure.ac +++ b/libphobos/configure.ac @@ -137,6 +137,7 @@ GCC_BASE_VER DRUNTIME_CONFIGURE DRUNTIME_MULTILIB DRUNTIME_WERROR +DRUNTIME_SECTION_FLAGS DRUNTIME_CPU_SOURCES DRUNTIME_OS_SOURCES DRUNTIME_OS_THREAD_MODEL |