mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
winbuild: fix PE version info debug flag
- Only set PE file flag VS_FF_DEBUG if curl.exe and libcurl.dll were built with winbuild option DEBUG=yes which builds with debug info. VS_FF_DEBUG is a PE flag (Portable Executable file flag - dll, exe, etc) that indicates the file contains or was built with debug info. Prior to this change when winbuild was used to build curl, curl.exe and libcurl.dll always had VS_FF_DEBUG set, regardless of build option DEBUG=yes/no, due to some bad logic. Closes https://github.com/curl/curl/pull/13739
This commit is contained in:
parent
fd567d4f06
commit
6eb99d7c1c
@ -428,13 +428,13 @@ CFGSET = true
|
||||
# CURL_XX macros are for the curl.exe command
|
||||
|
||||
!IF "$(DEBUG)"=="yes"
|
||||
RC_FLAGS = /dDEBUGBUILD=1 /Fo $@ $(LIBCURL_SRC_DIR)\libcurl.rc
|
||||
RC_FLAGS = /d_DEBUG /Fo $@ $(LIBCURL_SRC_DIR)\libcurl.rc
|
||||
CURL_CC = $(CC_DEBUG) $(RTLIB_DEBUG)
|
||||
CURL_RC_FLAGS = $(CURL_RC_FLAGS) /i../include /dDEBUGBUILD=1 /Fo $@ $(CURL_SRC_DIR)\curl.rc
|
||||
CURL_RC_FLAGS = $(CURL_RC_FLAGS) /i../include /d_DEBUG /Fo $@ $(CURL_SRC_DIR)\curl.rc
|
||||
!ELSE
|
||||
RC_FLAGS = /dDEBUGBUILD=0 /Fo $@ $(LIBCURL_SRC_DIR)\libcurl.rc
|
||||
RC_FLAGS = /Fo $@ $(LIBCURL_SRC_DIR)\libcurl.rc
|
||||
CURL_CC = $(CC_NODEBUG) $(RTLIB)
|
||||
CURL_RC_FLAGS = $(CURL_RC_FLAGS) /i../include /dDEBUGBUILD=0 /Fo $@ $(CURL_SRC_DIR)\curl.rc
|
||||
CURL_RC_FLAGS = $(CURL_RC_FLAGS) /i../include /Fo $@ $(CURL_SRC_DIR)\curl.rc
|
||||
!ENDIF
|
||||
|
||||
!IF "$(AS_DLL)" == "true"
|
||||
|
Loading…
Reference in New Issue
Block a user