diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-09-12 16:08:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-09-12 16:08:38 +0200 |
commit | 3aaa820446f1ad3d3b0ddc557238b6fb3496dd54 (patch) | |
tree | 9238558f174d79e91e2ea9c9dc5d309c74b1b45d | |
parent | Disable GCC 6 -Wnull-dereference again for now (diff) | |
download | core-3aaa820446f1ad3d3b0ddc557238b6fb3496dd54.tar.gz core-3aaa820446f1ad3d3b0ddc557238b6fb3496dd54.zip |
tdf#91966: In SDK, set CPPU_ENV=mscx for 64-bit Windows
Change-Id: Ib93b2db40f43f98d8369cb91ca35692cc92f023b
-rw-r--r-- | odk/settings/settings.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/odk/settings/settings.mk b/odk/settings/settings.mk index bad655c03825..1d6ad05a26f0 100644 --- a/odk/settings/settings.mk +++ b/odk/settings/settings.mk @@ -113,8 +113,14 @@ SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/inclu # define for used compiler necessary for UNO # -DCPPU_ENV=msci -- windows msvc 4.x - 7.x -CC_DEFINES_JNI=-DWIN32 -DWNT -D_DLL -DCPPU_ENV=msci -CC_DEFINES=-DWIN32 -DWNT -D_DLL -DCPPU_ENV=msci +ifeq "$(PROCTYPE)" "x86_64" +CPPU_ENV=mscx +else +CPPU_ENV=msci +endif + +CC_DEFINES_JNI=-DWIN32 -DWNT -D_DLL -DCPPU_ENV=$(CPPU_ENV) +CC_DEFINES=-DWIN32 -DWNT -D_DLL -DCPPU_ENV=$(CPPU_ENV) CC_OUTPUT_SWITCH=-Fo LIBO_SDK_LDFLAGS_STDLIBS = $(LIBO_SDK_DETAIL_LDFLAGS_MSVCRT) kernel32.lib |