spec: allow setting ldflags

This commit is contained in:
2024-09-04 12:18:23 +08:00
parent e31b4ea7b8
commit c103177e96
2 changed files with 5 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ default:
# path. You can adjust it, or add lines for other environment variables.
# See: https://www.spec.org/cpu2017/Docs/config.html#preenv
# and: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
LDFLAGS = -L %{gcc_dir}/lib -static
LDFLAGS = @@LDFLAGS@@
LIBS = %{gcc_dir}/lib/libpgmath.a %{gcc_dir}/lib/libflang.a %{gcc_dir}/lib/libflangrti.a -lompstub