We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3246 - sdl2 pkg-config does not require x11
Summary: sdl2 pkg-config does not require x11
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.4
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-25 23:04 UTC by Sheena Artrip
Modified: 2016-01-28 07:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sheena Artrip 2016-01-25 23:04:06 UTC
The pkg-config input file (sdl2.pc.in) does not have any Require macro. Therefore on systems where X11 is not in a standard location, the command "pkg-config --cflags --libs sdl2" will not build an application that uses SDL_syswm.h (example in link).

Confirmed against sdl2.pc.in within github mirror.

Related github issue and PR NixOS distro:

https://github.com/NixOS/nixpkgs/issues/12585

https://github.com/NixOS/nixpkgs/pull/12586
Comment 1 Sheena Artrip 2016-01-26 02:12:10 UTC
I realize this might not be good, since a pkg-config --cflags --libs sdl2 will automatically attempt to link to X11, even if SDL_VIDEO_DRIVER_X11 isn't used.

Help yourself to close or modify the issue, as needed.
Comment 2 Sheena Artrip 2016-01-28 07:17:18 UTC
Unnecessary. Downstream NixOS issues and PRs have been closed and resolved.