Commit 9423d2bd authored by Mark Olesen's avatar Mark Olesen
Browse files

CONFIG: improve support for compiler/link options (#1830)

- introduce WM_COMPILE_CONTROL variable to convey control information
  into the build rules.

  The convention (as per spack):
      - '+' to select a feature
      - '~' to deselect a feature

  Eg, to select the gold linker, and disable openmp
  (spaces are not required):

      WM_COMPILE_CONTROL="+gold ~openmp"

CONFIG: accept FOAM_EXTRA_LDFLAGS for AMD, gold, Mingw linkers

CONFIG: generalize PROJECT_LIBS (-ldl used almost universally)
parent fbfcdfc7
/* Without the normal defaults */
PROJECT_INC =
PROJECT_LIBS =
/* Without the normal project defaults */
PROJECT_INC =
PROJECT_LIBS =
EXE_INC = -Idummy
EXE_LIBS = \
-lOpenFOAM-dummy
EXE_LIBS = -lOpenFOAM-dummy
/* Without the normal defaults */
PROJECT_INC =
PROJECT_LIBS =
/* Without the normal project defaults */
PROJECT_INC =
PROJECT_LIBS =
EXE_INC = \
-DWM_ARCH=\"$(WM_ARCH)\" \
......@@ -8,5 +8,4 @@ EXE_INC = \
-DWM_COMPILE_OPTION=\"$(WM_COMPILE_OPTION)\" \
-DWM_OPTIONS=\"$(WM_OPTIONS)\"
/* LIB_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC = /*-DFULLDEBUG -O0 -g*/ \
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC = /*-DFULLDEBUG -O0 -g*/ \
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
EXE_INC =
EXE_LIBS =
/* EXE_INC = */
/* EXE_LIBS = */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment