- for clang-based compilers the default linker may be lld or simply ld. Support '+link-ld' to explicitly select use of the ld linker. - consolidate linker rules into single files STYLE: adjust SPDX Identifier
16 lines
468 B
Plaintext
16 lines
468 B
Plaintext
#------------------------------------------------------------------------------
|
|
|
|
LINK_LIBS = $(c++DBUG) -Wl,--as-needed
|
|
|
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
|
|
|
LINKEXE = $(CC) $(c++FLAGS)
|
|
|
|
# ---------------
|
|
# Link dummy stub to resolve libPstream symbols used by libOpenFOAM
|
|
ifneq (,$(findstring -lOpenFOAM,$(PROJECT_LIBS)))
|
|
LINKEXE += -L$(FOAM_LIBBIN)/dummy -lPstream
|
|
endif
|
|
|
|
#------------------------------------------------------------------------------
|