Skip to content

Commit

Permalink
[clang/june24] in gg_tt.mad cudacpp.mk, fix clang16 build of fcheck_c…
Browse files Browse the repository at this point in the history
…pp.exe by adding -no-pie madgraph5#904
  • Loading branch information
valassi committed Jul 11, 2024
1 parent 6dce3d6 commit 5cdb95a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions epochX/cudacpp/gg_tt.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,8 @@ $(BUILDDIR)/%_fortran.o : %.f *.inc

ifeq ($(UNAME_S),Darwin)
$(cxx_fcheckmain): LIBFLAGS += -L$(shell dirname $(shell $(FC) --print-file-name libgfortran.dylib)) # add path to libgfortran on Mac #375
else ifneq ($(shell $(CXX) --version | egrep '^clang'),)
$(cxx_fcheckmain): LIBFLAGS += -no-pie # fix clang16 build #904 (see https://github.com/harvard-acc/ALADDIN/issues/35#issuecomment-716271605)
endif
$(cxx_fcheckmain): LIBFLAGS += $(CXXLIBFLAGSRPATH) # avoid the need for LD_LIBRARY_PATH
$(cxx_fcheckmain): $(BUILDDIR)/fcheck_sa_fortran.o $(BUILDDIR)/fsampler_cpp.o $(LIBDIR)/lib$(MG5AMC_CXXLIB).so $(cxx_objects_exe)
Expand Down

0 comments on commit 5cdb95a

Please sign in to comment.