summaryrefslogtreecommitdiff
path: root/solenv/inc/set_wntx64.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-08-22 23:05:55 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-08-22 23:35:19 +0300
commitc3b5c166b9bc212d631558a7568a6eb24fea11c0 (patch)
tree37fc6a6769d8ea2edc3c06b906fcb1adbc227811 /solenv/inc/set_wntx64.mk
parente012efa0b6fbfdd09d81f74e8913f9d40e782ab4 (diff)
Make a dbgutil build of the Explorer extension succeed
Take notice of USE_DEBUG_RUNTIME also in set_wntx64.mk. Don't unset USE_DEBUG_RUNTIME and don't hardcode the non-debugging msvcprt.lib when building the Explorer extension. Undefine OSL_DEBUG_LEVEL in its source files that would otherwise drag in the diagnosing functions from sal. We don't link the Explorer extension with sal. As such it might not make much sense to actually *use* a shell extension built with assertions in the C++ library, against the debugging C/C++ runtime. You don't want assertions to fire in Explorer, do you? On the other hand, one could be debugging an Explorer extension remotely. Maybe even locally, I don't know if some lower levels of Windows get upset if Explorer is unresponsive due to being debugged, or something. But anyway, the main point for now is to make an --enable-dbgutil build succeed. Alternatively we could also make sure USE_DEBUG_RUNTIME is unset in *all* makefiles in shell.
Diffstat (limited to 'solenv/inc/set_wntx64.mk')
-rw-r--r--solenv/inc/set_wntx64.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/solenv/inc/set_wntx64.mk b/solenv/inc/set_wntx64.mk
index bc8fb7445dfd..c29e8ba8f9df 100644
--- a/solenv/inc/set_wntx64.mk
+++ b/solenv/inc/set_wntx64.mk
@@ -51,6 +51,9 @@ USE_CDEFS_X64+= -D$(OS) -D$(GUI) -D$(GVER) -D$(COM) -DX86_64 -DWIN32 -D_AMD64_=1
USE_CFLAGS_X64+=-Zi -Fd$(MISC_X64)/$(@:b).pdb
USE_CDEFS_X64+=-DDEBUG
.ENDIF # "$(debug)"!=""
+.IF "$(USE_DEBUG_RUNTIME)" != ""
+USE_CDEFS_X64+=-D_DEBUG
+.ENDIF
USE_CFLAGS_X64+=$(CFLAGS_X64)
USE_CDEFS_X64+=$(CDEFS_X64)
INCLUDE_X64=$(subst,/stl$(SPACECHAR),dont_use_stl$(SPACECHAR) $(INCLUDE))
@@ -144,8 +147,13 @@ URLMONLIB_X64=$(LIBPATH_X64)/urlmon.lib
WININETLIB_X64=$(LIBPATH_X64)/wininet.lib
OLDNAMESLIB_X64=$(LIBPATH_VC_X64)/oldnames.lib
MSIMG32LIB_X64=$(LIBPATH_X64)/msimg32.lib
+.IF "$(USE_DEBUG_RUNTIME)" != ""
+MSVCPRT_X64=$(LIBPATH_VC_X64)/msvcprtd.lib
+MSVCRT_X64=$(LIBPATH_VC_X64)/msvcrtd.lib
+.ELSE
MSVCPRT_X64=$(LIBPATH_VC_X64)/msvcprt.lib
MSVCRT_X64=$(LIBPATH_VC_X64)/msvcrt.lib
+.ENDIF
MISC_X64=$(MISC)/x64
OBJ_X64=$(OBJ)/x64