summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-16 15:35:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-16 15:35:58 +0000
commit94a5174e5903c90744b02bc8862031ee818b58e0 (patch)
tree7cec8634cfe9d8812f3f533b9e2e0f0ff2e78666 /writerfilter
parent0f0a246f8f322f5c38b3caf7b99b83bf990cb9f2 (diff)
get this to build on ppc64 linux
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/Library_resourcemodel.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/writerfilter/Library_resourcemodel.mk b/writerfilter/Library_resourcemodel.mk
index 13d5704c09ee..f485ef73e062 100644
--- a/writerfilter/Library_resourcemodel.mk
+++ b/writerfilter/Library_resourcemodel.mk
@@ -75,9 +75,23 @@ $(eval $(call gb_Library_add_generated_exception_objects,resourcemodel,\
CustomTarget/writerfilter/source/sprmcodetostr \
))
+
+ifneq ($(COM)-$(OS)-$(CPUNAME),GCC-LINUX-POWERPC64)
+#Apparently some compilers, according to the original .mk this was converted
+#from, require this to be noopt or they fail to compile it, probably good to
+#revisit that and narrow this down to where it's necessary
$(eval $(call gb_Library_add_generated_cxxobjects,resourcemodel,\
CustomTarget/writerfilter/source/qnametostr \
, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
))
+else
+#Ironically, on RHEL-6 PPC64 with no-opt the output is too large for the
+#toolchain, "Error: operand out of range", but it build fine with
+#normal flags
+$(eval $(call gb_Library_add_generated_cxxobjects,resourcemodel,\
+ CustomTarget/writerfilter/source/qnametostr \
+ , $(gb_LinkTarget_EXCEPTIONFLAGS) \
+))
+endif
# vim: set noet sw=4 ts=4: