summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2015-01-12 23:19:59 +0100
committerMichael Stahl <mstahl@redhat.com>2015-01-13 11:58:32 +0000
commit5e4a7a95027d979b3bdd729d7ebe950da1129b2b (patch)
tree18bcd7dc327e2fd910e1c935ad25e6a1c7f91aea /basebmp
parent4cd1c4cb41316e16996a92695d86ac1d956d7e07 (diff)
Fix number of sections exceeded object file format limit
Change-Id: If81ebef14696c856374967e984138fbd25218a8c Reviewed-on: https://gerrit.libreoffice.org/13879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/Library_basebmp.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/basebmp/Library_basebmp.mk b/basebmp/Library_basebmp.mk
index 26d8f2a1c868..cd8a753cb459 100644
--- a/basebmp/Library_basebmp.mk
+++ b/basebmp/Library_basebmp.mk
@@ -26,6 +26,19 @@ $(eval $(call gb_Library_add_defs,basebmp,\
-DBASEBMP_DLLIMPLEMENTATION \
))
+# TODO(davido): This is failing only in release mode with:
+#
+# Compilation of bitmapdevice.cxx is failing in release mode:
+#
+# Fatal Error C1128: number of sections exceeded object file
+# format limit : compile with /bigobj
+#
+ifeq ($(CPUNAME),X86_64)
+$(eval $(call gb_Library_add_cxxflags,basebmp, \
+ -bigobj \
+))
+endif
+
$(eval $(call gb_Library_add_exception_objects,basebmp,\
basebmp/source/bitmapdevice \
basebmp/source/debug \