Merge pull request #5138 from martin-frbg/issue5131

Ensure that gmake builds with flang-new link the flang runtime into the shared library
This commit is contained in:
Martin Kroeker
2025-02-18 09:53:31 +01:00
committed by GitHub

View File

@@ -197,7 +197,7 @@ ifeq ($(F_COMPILER), INTEL)
-Wl,--whole-archive $< -Wl,--no-whole-archive \
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
else ifeq ($(F_COMPILER), FLANG)
else ifeq ($(F_COMPILER), $(filter $(F_COMPILER),FLANG FLANGNEW))
$(FC) $(FFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)