summaryrefslogtreecommitdiffstats
path: root/desktop/Executable_smath.mk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-12-12 17:39:50 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-12 20:06:27 +0100
commit07359c242830bcc934d491870cdf5cb70fc26414 (patch)
tree4dfd0a6a3c9a8da73ac1e079caba57cb22704cc7 /desktop/Executable_smath.mk
parentwinaccessibility: let's try to remove that IsInMainThread() (diff)
downloadcore-07359c242830bcc934d491870cdf5cb70fc26414.tar.gz
core-07359c242830bcc934d491870cdf5cb70fc26414.zip
Revert "fix windows build"
This reverts commit 45504f9ba8de2a4372193910b2cb9405f1ea896a. The problem that is apparently fixed here is that link.exe is too dumb to pick the right entry-point if the WinMain definition does not come from an object file but a .lib; in that case it apparently defaults to archaic 8-bit WinMain so tell it to use Unicode one with /ENTRY. Conflicts: desktop/Executable_sbase.mk desktop/Executable_scalc.mk desktop/Executable_sdraw.mk desktop/Executable_simpress.mk desktop/Executable_smath.mk desktop/Executable_sweb.mk desktop/Executable_swriter.mk Change-Id: Ib6239eb0fd3d64fd4a292a0d42d65ef75475c389
Diffstat (limited to 'desktop/Executable_smath.mk')
-rw-r--r--desktop/Executable_smath.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/desktop/Executable_smath.mk b/desktop/Executable_smath.mk
index 627ceb46b11f..980cc544edcd 100644
--- a/desktop/Executable_smath.mk
+++ b/desktop/Executable_smath.mk
@@ -15,17 +15,18 @@ $(eval $(call gb_Executable_add_defs,smath,\
-DUNICODE \
))
+$(eval $(call gb_Executable_add_ldflags,smath,\
+ /ENTRY:wWinMainCRTStartup \
+))
+
$(eval $(call gb_Executable_use_libraries,smath,\
$(gb_UWINAPI) \
))
-$(eval $(call gb_Executable_add_libs,smath,\
- $(call gb_CxxObject_get_target,desktop/win32/source/applauncher/launcher) \
+$(eval $(call gb_Executable_use_static_libraries,smath,\
+ winlauncher \
))
-$(call gb_Executable_get_target,smath) : \
- $(call gb_CxxObject_get_target,desktop/win32/source/applauncher/launcher)
-
$(eval $(call gb_Executable_add_exception_objects,smath,\
desktop/win32/source/applauncher/smath \
))