This is an automated email from the git hooks/post-receive script.
ildumi pushed a commit to branch development
in repository libtool.
The following commit(s) were added to refs/heads/development by this push:
new ef972c6d ltmain: Pass through -fno-lto and -ffixed=*
ef972c6d is described below
commit ef972c6d188d7bdfb9cf791748c0b9afcb97156e
Author: Marc <[email protected]>
AuthorDate: Thu Sep 10 21:19:40 2026 +0200
ltmain: Pass through -fno-lto and -ffixed=*
Reported:
https://lists.gnu.org/archive/html/libtool-patches/2026-09/msg00000.html
* build-aux/ltmain.in: Pass through -fno-lto and -ffixed=*.
* NEWS: Update.
---
NEWS | 5 +++++
build-aux/ltmain.in | 3 +++
2 files changed, 8 insertions(+)
diff --git a/NEWS b/NEWS
index 827c97aa..b702d93b 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,11 @@ NEWS - list of user-visible changes between releases of GNU
Libtool
* Noteworthy changes in release ?.? (????-??-??) [?]
+** New features:
+
+ - Pass through -fno-lto and -ffixed=* to disable link-time optimization
+ and reserve registers.
+
** Changes in supported systems or compilers:
- Support AOCC Fortran compiler 'aof'.
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index af2f7560..0cf5aaf0 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5666,6 +5666,8 @@ func_mode_link ()
# --sysroot=* for sysroot support
# --target=* for target architecture support
# -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time
optimization
+ # -fno-lto disable link-time optimization
+ # -ffixed=* reserve registers
# -specs=* GCC specs files
# -stdlib=* select c++ std lib with clang
# -fdiagnostics-color* simply affects output
@@ -5687,6 +5689,7 @@ func_mode_link ()
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*|--target=*|
\
-O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes|
\
+ -fno-lto|-ffixed=*| \
-stdlib=*|-resource-dir=*|-rtlib=*|--unwindlib=*| \
-specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|
\