summaryrefslogtreecommitdiff
path: root/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk
diff options
context:
space:
mode:
Diffstat (limited to 'editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk')
-rw-r--r--editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk b/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk
index f91d88004b2d..d4229f98d886 100644
--- a/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk
+++ b/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk
@@ -1,6 +1,6 @@
---- solenv/inc/unxfbsd.mk.orig 2017-11-27 13:50:28 UTC
+--- solenv/inc/unxfbsd.mk.orig 2017-01-23 03:29:47 UTC
+++ solenv/inc/unxfbsd.mk
-@@ -96,7 +96,7 @@ CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
+@@ -105,10 +105,15 @@ CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
# -fpermissive should be removed as soon as possible
@@ -9,3 +9,11 @@
.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
CFLAGSCXX += -fvisibility-inlines-hidden
.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
++
++.IF "$(CPUNAME)" == "INTEL" || "$(CPUNAME)" == "X86_64"
++CFLAGSCC += -fstack-protector
++CFLAGSCXX += -fstack-protector
++.ENDIF
+
+ # Compiler flags for compiling static object in multi threaded environment with graphical user interface
+ CFLAGSOBJGUIMT=