COMP: manage cpu architecture with cARCH, c++ARCH internal make variables

- allows better separation from compiler settings

- use -fPIC instead of legacy -KPIC for intel compiler
This commit is contained in:
Mark Olesen
2019-04-12 12:59:11 +02:00
parent 0f26b44557
commit 92238ec4b6
47 changed files with 144 additions and 116 deletions

View File

@ -1,10 +1,10 @@
include $(GENERAL_RULES)/Icc/c
cc = icc
cARCH =
include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
cFLAGS = $(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@