Skip to content

LADSPA: Fix undefined reference due to vectorization - #4434

Merged
PhysSong merged 1 commit into
LMMS:stable-1.2from
PhysSong:vecmath
Jun 19, 2018
Merged

PhysSong merged 1 commit into
LMMS:stable-1.2from
PhysSong:vecmath

Conversation

@PhysSong

Copy link
Copy Markdown
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.

@lukas-w lukas-w left a comment

Copy link
Copy Markdown
Member

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