diff --git a/target.make b/target.make index 8b3126c0..c058e3e4 100644 --- a/target.make +++ b/target.make @@ -43,6 +43,14 @@ endif INTERNAL_CFLAGS = -pthread INTERNAL_OBJCFLAGS = -pthread INTERNAL_LDFLAGS = + +ifeq ($(debug), yes) + # Embed PDB Debug Info on Windows MSVC + ifeq ($(findstring windows, $(GNUSTEP_TARGET_OS)), windows) + INTERNAL_LDFLAGS += -Wl,-debug + endif +endif + ifneq ($(findstring android, $(GNUSTEP_TARGET_OS)), android) ifneq ($(GNUSTEP_TARGET_OS), windows) INTERNAL_LDFLAGS = -pthread