summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2020-10-21 13:47:17 +0400
committerMichael Stahl <michael.stahl@cib.de>2020-10-22 11:00:11 +0200
commitd733db0165f3209b92dc84c16298e765823e0eef (patch)
tree55556a770bea012e1fe2394bf6224b0b16f99bbc
parent51049d55c7d36c84f4bf9c08bfabb76fa70bd922 (diff)
Add gbuild/platform/FREEBSD_POWERPC[64]_GCC.mk files.
Add "freebsd_powerpc64" case to the checkOSandCPU switch in dp_platform.cxx. Change-Id: Iedee32ecb5b49ee99cd5cf7f8d7e0e33aef1c312 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104616 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--desktop/source/deployment/misc/dp_platform.cxx2
-rw-r--r--solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk17
-rw-r--r--solenv/gbuild/platform/FREEBSD_POWERPC_GCC.mk16
3 files changed, 35 insertions, 0 deletions
diff --git a/desktop/source/deployment/misc/dp_platform.cxx b/desktop/source/deployment/misc/dp_platform.cxx
index 9e4fd320b39f..fb72d7d2b3ff 100644
--- a/desktop/source/deployment/misc/dp_platform.cxx
+++ b/desktop/source/deployment/misc/dp_platform.cxx
@@ -133,6 +133,8 @@ namespace
ret = checkOSandCPU("FreeBSD", "X86_64");
else if (token == "freebsd_powerpc")
ret = checkOSandCPU("FreeBSD", "PowerPC");
+ else if (token == "freebsd_powerpc64")
+ ret = checkOSandCPU("FreeBSD", "PowerPC64");
else if (token == "kfreebsd_x86")
ret = checkOSandCPU("kFreeBSD", "x86");
else if (token == "kfreebsd_x86_64")
diff --git a/solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk b/solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk
new file mode 100644
index 000000000000..93fdf8126b83
--- /dev/null
+++ b/solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk
@@ -0,0 +1,17 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+#please make generic modifications to unxgcc.mk or linux.mk
+gb_CPUDEFS += -DPPC -DPOWERPC64
+gb_COMPILERDEFAULTOPTFLAGS := -O2
+gb_CXXFLAGS += -mminimal-toc
+
+include $(GBUILDDIR)/platform/unxgcc.mk
+
+# vim: set noet sw=4:
diff --git a/solenv/gbuild/platform/FREEBSD_POWERPC_GCC.mk b/solenv/gbuild/platform/FREEBSD_POWERPC_GCC.mk
new file mode 100644
index 000000000000..48c29b6f12c0
--- /dev/null
+++ b/solenv/gbuild/platform/FREEBSD_POWERPC_GCC.mk
@@ -0,0 +1,16 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+#please make generic modifications to unxgcc.mk or linux.mk
+gb_CPUDEFS += -DPPC -DPOWERPC
+gb_COMPILERDEFAULTOPTFLAGS := -O2
+
+include $(GBUILDDIR)/platform/unxgcc.mk
+
+# vim: set noet sw=4: