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

W32: prevent "dllexport" from being added to globalvardefs when building for static linking #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

umlaeute
Copy link

@umlaeute umlaeute commented Nov 8, 2022

This PR introduces an FLITE_STATIC define.

If FLITE_STATIC is defined at build-time, GLOBALVARDEF decorator will not use __declspec(dllexport) (on Windows).
This allows using a static flite on Windows (other platforms don't have this problem).

The FLITE_STATIC define must be set manually by whoever wants to use flite in this way.

Closes: #83

…g for static linking

Closes: festvox#83

Signed-off-by: IOhannes m zmölnig <[email protected]>
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.

allow static linking on Windows
1 participant