openfoam/wmake/rules/darwin64/rpath
Mark Olesen bdac68ebc7 CONFIG: add Gcc rules for MacOS (darwin)
- /usr/bin/{gcc,g++} normally just symlinks to clang/clang++
  and may have unknown default flags.
  For a gcc toolchain, it would be better to use a homebrew
  installation.

  For these cases, the compiler will need to be specified with
  version=.. in WM_COMPILE_CONTROL.

  For example, with "version=14", to select gcc-14, g++-14 from the
  homebrew installation.

- needs a slight hack for locating the FlexLexer.h header.
  Added into src/OSspecific/POSIX similar to how it is handled
  in src/OSspecific/MSwindows

CONFIG: add simple config/detection support for libumpire (Linux)
2025-03-31 16:00:07 +02:00

33 lines
1.0 KiB
Plaintext

#------------------------------------------------------------------------------
# Linking with rpath components (MacOS)
#------------------------------------------------------------------------------
# Compile-time rpath information:
FOAM_MPI ?= dummy
ifeq (,$(strip $(FOAM_MPI)))
FOAM_MPI = dummy
endif
PROJECT_RPATH :=
# ThirdParty libraries (FOAM_EXT_LIBBIN) : mpi-specific and serial
ifneq (,$(strip $(FOAM_EXT_LIBBIN)))
ifneq (dummy,$(strip $(FOAM_MPI)))
PROJECT_RPATH += -rpath $(FOAM_EXT_LIBBIN)/$(FOAM_MPI)
endif
PROJECT_RPATH += -rpath $(FOAM_EXT_LIBBIN)
endif
# project libraries (FOAM_LIBBIN) : mpi-specific and serial
# encode as @loader_path and recompose as @executable_path as needed
ifneq (dummy,$(strip $(FOAM_MPI)))
PROJECT_RPATH += -rpath @loader_path/$(FOAM_MPI)
endif
PROJECT_RPATH += -rpath @loader_path
# Fallback for stubs libraries (largely for missing MPI) - to be found last
PROJECT_RPATH += -rpath @loader_path/dummy
#------------------------------------------------------------------------------