Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
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.

None yet

1 participant