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

LADSPA: Fix undefined reference due to vectorization #4434

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

PhysSong
Copy link
Member

Fixes #4030 by always linking math library.
Recent version of GCC optimizes some math function calls by vectorization. It requires a library mvec. GCC automatically links it if and only if math library is linked and target file needs the library.
Since LMMS doesn't use vector math function, LMMS won't be linked against mvec. It may cause crash on program loading and/or project loading.
Additionally, this pull request drop useless -Wl,-no-undefined for Windows(I guess it was needed by libtool) and a flag which isn't used elsewhere, (-Wl,)-Bsymbolic.
The MSVC check is for master, but I've added it here because it can be missed when syncing branches.

Copy link
Member

@lukas-w lukas-w left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@PhysSong PhysSong merged commit 6af5154 into LMMS:stable-1.2 Jun 19, 2018
@PhysSong PhysSong deleted the vecmath branch June 19, 2018 00:32
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
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