mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
09cf9d9963
commit
787325a916
@ -1,16 +1,16 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cc = gcc -mcpu=cortex-a9
|
||||
cARCH = -mcpu=cortex-a9
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
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 $@
|
||||
|
||||
LINK_LIBS = $(cDBUG)
|
||||
|
||||
LINKLIBSO = $(cc) -shared
|
||||
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||
LINKLIBSO = $(cc) $(cARCH) -shared
|
||||
LINKEXE = $(cc) $(cARCH) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||
|
||||
Reference in New Issue
Block a user