From 9def55df8674a6db0d24c47284c21a64ab3fc97c Mon Sep 17 00:00:00 2001 From: Guillaume Giudicelli Date: Tue, 5 Nov 2024 13:58:51 -0700 Subject: [PATCH] Remove linking warning from gfortran + clang closes #29009 --- framework/build.mk | 3 ++- framework/moose.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/build.mk b/framework/build.mk index c91db8155af9..8a33dffbfa4d 100644 --- a/framework/build.mk +++ b/framework/build.mk @@ -316,8 +316,9 @@ endif PLUGIN_FLAGS := -shared -fPIC -Wl,-undefined,dynamic_lookup # we add include/base so that MooseConfig.h can be found, which is absent from the symlink dirs +# We delete a known warning on MacOS from the output because it is printed thousands of times %-$(METHOD).plugin : %.C - @$(libmesh_CXX) $(libmesh_CPPFLAGS) $(ADDITIONAL_CPPFLAGS) $(CXXFLAGS) $(libmesh_CXXFLAGS) $(PLUGIN_FLAGS) $(app_INCLUDES) $(libmesh_INCLUDE) -I $(FRAMEWORK_DIR)/include/base $< -o $@ + @$(libmesh_CXX) $(libmesh_CPPFLAGS) $(ADDITIONAL_CPPFLAGS) $(CXXFLAGS) $(libmesh_CXXFLAGS) $(PLUGIN_FLAGS) $(app_INCLUDES) $(libmesh_INCLUDE) -I $(FRAMEWORK_DIR)/include/base $< -o $@ 2> >(grep -v "could not create compact unwind for" >&2) %-$(METHOD).plugin : %.c @echo "Compiling C Plugin (in "$(METHOD)" mode) "$<"..." @$(libmesh_CC) $(libmesh_CPPFLAGS) $(ADDITIONAL_CPPFLAGS) $(libmesh_CFLAGS) $(PLUGIN_FLAGS) $(app_INCLUDES) $(libmesh_INCLUDE) $< -o $@ diff --git a/framework/moose.mk b/framework/moose.mk index 2e5a2dba7096..bc46ee1cb63f 100644 --- a/framework/moose.mk +++ b/framework/moose.mk @@ -421,10 +421,11 @@ $(hit_LIB): $(hit_objects) $(libmesh_CXX) $(CXXFLAGS) $(libmesh_CXXFLAGS) -o $@ $(hit_objects) $(libmesh_LDFLAGS) $(libmesh_LIBS) $(EXTERNAL_FLAGS) -rpath $(HIT_DIR) @$(libmesh_LIBTOOL) --mode=install --quiet install -c $(hit_LIB) $(HIT_DIR) +# We delete a known warning on MacOS from the output because it is printed thousands of times $(moose_LIB): $(moose_objects) $(pcre_LIB) $(gtest_LIB) $(hit_LIB) $(pyhit_LIB) @echo "Linking Library "$@"..." @$(libmesh_LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link --quiet \ - $(libmesh_CXX) $(CXXFLAGS) $(libmesh_CXXFLAGS) -o $@ $(moose_objects) $(pcre_LIB) $(png_LIB) $(libmesh_LDFLAGS) $(libmesh_LIBS) $(EXTERNAL_FLAGS) -rpath $(FRAMEWORK_DIR) + $(libmesh_CXX) $(CXXFLAGS) $(libmesh_CXXFLAGS) -o $@ $(moose_objects) $(pcre_LIB) $(png_LIB) $(libmesh_LDFLAGS) $(libmesh_LIBS) $(EXTERNAL_FLAGS) -rpath $(FRAMEWORK_DIR) 2> >(grep -v "could not create compact unwind for" >&2) @$(libmesh_LIBTOOL) --mode=install --quiet install -c $(moose_LIB) $(FRAMEWORK_DIR) ifeq ($(MOOSE_HEADER_SYMLINKS),true)