Skip to content

Commit abbd78a

Browse files
authored
Merge pull request #5138 from martin-frbg/issue5131
Ensure that gmake builds with flang-new link the flang runtime into the shared library
2 parents ed15846 + ebcab90 commit abbd78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exports/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ ifeq ($(F_COMPILER), INTEL)
197197
-Wl,--whole-archive $< -Wl,--no-whole-archive \
198198
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)
199199
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
200-
else ifeq ($(F_COMPILER), FLANG)
200+
else ifeq ($(F_COMPILER), $(filter $(F_COMPILER),FLANG FLANGNEW))
201201
$(FC) $(FFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
202202
-Wl,--whole-archive $< -Wl,--no-whole-archive \
203203
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)

0 commit comments

Comments
 (0)