Skip to content

Fix static linking: all variables need to be defined#99

Merged
lluisp merged 2 commits intoTALP-UPC:masterfrom
jgsogo:fix/static_linking
Jul 1, 2020
Merged

Fix static linking: all variables need to be defined#99
lluisp merged 2 commits intoTALP-UPC:masterfrom
jgsogo:fix/static_linking

Conversation

@jgsogo
Copy link
Copy Markdown
Contributor

@jgsogo jgsogo commented May 19, 2020

closes #96

In order to link statically all the extern variables need to be defined (we cannot fool the compiler). These variables were originally defined in the main() function in foma.c, but this function was removed. Maybe to use foma as a library some of these files are not needed, this is something we could investigate.

I hope these changes don't break anything

@lluisp lluisp merged commit 15997dc into TALP-UPC:master Jul 1, 2020
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.

Failure linking 'analyzer' with global variables [macos] [static]

2 participants