Skip to content

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

Open
umlaeute wants to merge 1 commit intofestvox:masterfrom
umlaeute-contributions:w32-static-linking
Open

W32: prevent "dllexport" from being added to globalvardefs when building for static linking#84
umlaeute wants to merge 1 commit intofestvox:masterfrom
umlaeute-contributions:w32-static-linking

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 <zmoelnig@iem.at>
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