Skip to content

[sdl2] Don't propagate shared link options#14992

Merged
BillyONeal merged 1 commit intomicrosoft:masterfrom
JesseFarebro:master
Dec 11, 2020
Merged

[sdl2] Don't propagate shared link options#14992
BillyONeal merged 1 commit intomicrosoft:masterfrom
JesseFarebro:master

Conversation

@JesseFarebro
Copy link
Copy Markdown
Contributor

Describe the pull request
This is a patch so that SDL2 doesn't propagate link flags for shared builds. This can be problematic in certain cases, for example, SDL2 specifies -Wl,--no-undefined as a linker flag and this will get propagated to all dependent projects.

There are upstream issues

It's worth noting that this problem IS fixed in SDL 2.0.13 which hasn't been released yet. See spurious/SDL-mirror@07d40b7 for the specific commit / more info. When 2.0.13 is released we can get rid of this patch.

@ghost
Copy link
Copy Markdown

ghost commented Dec 8, 2020

CLA assistant check
All CLA requirements met.

Copy link
Copy Markdown
Contributor

@NancyLi1013 NancyLi1013 left a comment

Choose a reason for hiding this comment

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

Could you please also bump port-version in vcpkg.json file?

@NancyLi1013 NancyLi1013 added category:port-bug The issue is with a library, which is something the port should already support requires:author-response labels Dec 8, 2020
@JesseFarebro
Copy link
Copy Markdown
Contributor Author

Updated the PR according to your comments. Thanks for the quick feedback!

@JesseFarebro
Copy link
Copy Markdown
Contributor Author

@NancyLi1013 should this be relabelled to reviewed?

@NancyLi1013
Copy link
Copy Markdown
Contributor

Have you tested the feature vulkan? If it can build fine, there is nothing else that needs to be done for this PR.

@JesseFarebro
Copy link
Copy Markdown
Contributor Author

I just tested with the vulkan feature flag and it builds as expected.

@NancyLi1013
Copy link
Copy Markdown
Contributor

Thanks for your feedback @JesseFarebro.

LGTM now.

@NancyLi1013 NancyLi1013 added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Dec 10, 2020
@BillyONeal BillyONeal merged commit 1fca0cb into microsoft:master Dec 11, 2020
@BillyONeal
Copy link
Copy Markdown
Member

Thanks for this backport!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sdl2] don't specify -Wl,--no-undefined on INTERFACE_LINK_LIBRARIES

3 participants