Skip to content

Commit

Permalink
Merge pull request #5138 from martin-frbg/issue5131
Browse files Browse the repository at this point in the history
Ensure that gmake builds with flang-new link the flang runtime into the shared library
  • Loading branch information
martin-frbg authored Feb 18, 2025
2 parents ed15846 + ebcab90 commit abbd78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exports/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit abbd78a

Please sign in to comment.