Skip to content

Commit

Permalink
Remove linking warning from gfortran + clang
Browse files Browse the repository at this point in the history
closes #29009
  • Loading branch information
GiudGiud committed Nov 6, 2024
1 parent af6bed7 commit 9def55d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion framework/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
3 changes: 2 additions & 1 deletion framework/moose.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9def55d

Please sign in to comment.