summaryrefslogtreecommitdiff
path: root/setup_native/Library_sn_tools.mk
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-02-17 12:22:01 +0100
committerAndras Timar <atimar@suse.com>2013-02-17 12:25:44 +0100
commitc13c500630746ba035e0b48c0cbd276aa436db2b (patch)
treef476281b7720357055e3e08edf1f32c71f88fa65 /setup_native/Library_sn_tools.mk
parent850b4c7e2d5535dcf76cebea85b4f14c1c7aeaea (diff)
CustomActions should be statically linked with MSVCRT
Change-Id: I100b7ff7e3aa505098ce8b3333d1aa8faca50370
Diffstat (limited to 'setup_native/Library_sn_tools.mk')
-rw-r--r--setup_native/Library_sn_tools.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/setup_native/Library_sn_tools.mk b/setup_native/Library_sn_tools.mk
index 6a26601b9584..da93c89b9d63 100644
--- a/setup_native/Library_sn_tools.mk
+++ b/setup_native/Library_sn_tools.mk
@@ -9,8 +9,17 @@
$(eval $(call gb_Library_Library,sn_tools))
+$(eval $(call gb_Library_add_defs,sn_tools,\
+ -U_DLL \
+))
+
+$(eval $(call gb_Library_add_cxxflags,sn_tools,\
+ /MT \
+))
+
$(eval $(call gb_Library_add_ldflags,sn_tools,\
/DEF:$(SRCDIR)/setup_native/source/win32/customactions/tools/sn_tools.def \
+ /NODEFAULTLIB \
))
$(eval $(call gb_Library_add_exception_objects,sn_tools,\
@@ -22,8 +31,11 @@ $(eval $(call gb_Library_use_static_libraries,sn_tools,\
))
$(eval $(call gb_Library_use_system_win32_libs,sn_tools,\
- msi \
- advapi32 \
+ libcmt \
+ libcpmt \
+ kernel32 \
+ msi \
+ advapi32 \
))
# vim: set noet sw=4 ts=4: