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

Only export restbed symbols when building as a shared library + fix MinGW build #532

Closed
wants to merge 3 commits into from

Conversation

madebr
Copy link

@madebr madebr commented Oct 22, 2022

Fixes #531 by:

  • only exporting the restbed symbols when building restbed as a shared library.
    On Windows, when linking to a static restbed, you now need to add -DRESTBED_STATIC to the compiler.
  • When installing, also install the binary component of a shared library. This is the .dll on Windows.
  • Fix issues when building restbed using MinGW@Linux. In addition to gcc@Linux, I used this toolchain to verify the correct symbol visibility of restbed's users.

Fixes #496 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot buid a static Windows restbed library without export any symbol build error on mingw
1 participant