Skip to content

build: fix libffi building to the wrong directory (https://github.com/saghul/txiki.js/issues/453)#454

Merged
saghul merged 1 commit intosaghul:masterfrom
ItsTheWhale:master
Feb 19, 2024
Merged

build: fix libffi building to the wrong directory (https://github.com/saghul/txiki.js/issues/453)#454
saghul merged 1 commit intosaghul:masterfrom
ItsTheWhale:master

Conversation

@ItsTheWhale
Copy link
Copy Markdown
Contributor

On systems where gcc --print-multi-os-directory outputs something that is not ../lib, Libffi installs to the wrong location (e.g. lib64) where CMake cannot find it and errors, breaking the build. This fix disables placing binaries in other places with the --disable-multi-os-directory configuration flag, forcing Libffi to install to lib.
This fix has no effect on systems where Libffi already installs to lib, and therefore does not break anything.

Copy link
Copy Markdown
Owner

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@saghul saghul merged commit d5523c9 into saghul:master Feb 19, 2024
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.

2 participants