Skip to content

Makefile.mk: always set CURL_STATICLIB for lib (Windows)#11924

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:mk-curl-staticlib
Closed

Makefile.mk: always set CURL_STATICLIB for lib (Windows)#11924
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:mk-curl-staticlib

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Sep 23, 2023

Also fix to export all symbols in Windows debug builds, making
-debug-dyn builds work with -DCURL_STATICLIB set.

Ref: #11914 (same for CMake)

Closes #11924

This fixes `-debug-dyn` builds with `-DCURL_STATICLIB` set.
This allows to drop `-DCURL_STATICLIB` from a custom `CPPFLAGS`
(e.g. from curl-for-win). This in turn allows to enable `-dyn`
builds, without exporting symbols from the static libcurl at the
same time.
@vszakats vszakats added build Windows Windows-specific labels Sep 23, 2023
@vszakats vszakats changed the title Makefile.mk: always set CURL_STATICLIB on Windows Makefile.mk: always set CURL_STATICLIB for Windows Sep 23, 2023
@vszakats vszakats changed the title Makefile.mk: always set CURL_STATICLIB for Windows Makefile.mk: always set CURL_STATICLIB (Windows) Sep 23, 2023
@vszakats vszakats changed the title Makefile.mk: always set CURL_STATICLIB (Windows) Makefile.mk: always set CURL_STATICLIB for lib (Windows) Sep 23, 2023
@vszakats vszakats closed this in 6a85659 Sep 23, 2023
@vszakats vszakats deleted the mk-curl-staticlib branch September 23, 2023 20:45
vszakats added a commit to curl/curl-for-win that referenced this pull request Sep 23, 2023
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Also fix to export all symbols in Windows debug builds, making
`-debug-dyn` builds work with `-DCURL_STATICLIB` set.

Ref: curl#11914 (same for CMake)

Closes curl#11924
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant