$OpenBSD: patch-oox_Library_oox_mk,v 1.5 2018/02/05 17:15:05 robert Exp $

Index: oox/Library_oox.mk
--- oox/Library_oox.mk.orig
+++ oox/Library_oox.mk
@@ -288,7 +288,6 @@ $(eval $(call gb_Library_add_exception_objects,oox,\
     oox/source/shape/WpsContext \
     oox/source/token/namespacemap \
     oox/source/token/propertynames \
-    oox/source/token/tokenmap \
     oox/source/token/relationship \
     oox/source/vml/vmldrawing \
     oox/source/vml/vmldrawingfragment \
@@ -301,18 +300,20 @@ $(eval $(call gb_Library_add_exception_objects,oox,\
     oox/source/vml/vmltextbox \
 ))
 
-ifeq ($(OS),IOS)
+ifeq ($(OS),OPENBSD)
 # Either a compiler bug in Xcode 5.1.1 or some hard-to-spot undefined
 # behaviour in the source code... Compiling this source file with
 # optimization causes some Smart Art images to end up with completely
 # wrong colour, some even totally black.
 $(eval $(call gb_Library_add_cxxobjects,oox,\
     oox/source/drawingml/color \
+    oox/source/token/tokenmap \
     , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
 ))
 else
 $(eval $(call gb_Library_add_exception_objects,oox,\
     oox/source/drawingml/color \
+    oox/source/token/tokenmap \
 ))
 endif
 
