From 3226b03d63d646fa5766bdd5cd64902b3c4860d6 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Sat, 12 Sep 2015 23:32:11 +0100 Subject: [PATCH] wmake/rules/linuxPPC64leGcc/linuxPPC64leGcc: Updated link options Patch provided by Bruno Santos Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1846 --- wmake/rules/linuxPPC64leGcc/linuxPPC64leGcc | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 wmake/rules/linuxPPC64leGcc/linuxPPC64leGcc diff --git a/wmake/rules/linuxPPC64leGcc/linuxPPC64leGcc b/wmake/rules/linuxPPC64leGcc/linuxPPC64leGcc new file mode 100644 index 00000000000..284007b730e --- /dev/null +++ b/wmake/rules/linuxPPC64leGcc/linuxPPC64leGcc @@ -0,0 +1,24 @@ +SUFFIXES += .C + +c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof + +# Suppress some warnings for flex++ and CGAL +c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds + +CC = g++ -m64 -mcpu=power8 + +include $(RULES)/c++$(WM_COMPILE_OPTION) + +ptFLAGS = -DNoRepository -ftemplate-depth-100 + +c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC + +Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@ +cxxtoo = $(Ctoo) +cctoo = $(Ctoo) +cpptoo = $(Ctoo) + +LINK_LIBS = $(c++DBUG) + +LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed +LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed -- GitLab