Bug#909778: libsdl2-dev: SDL_config.h no longer in cflags provided by pkg-config/sdl2-config

Hugh McMaster hugh.mcmaster at outlook.com
Sat Sep 29 14:39:05 BST 2018


On Saturday, 29 September 2018 5:06 AM, Adrian Bunk wrote:
> The following fixes it properly:
> - revert the override_dh_install change, and
> - add --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) to confflags

This won't do what you think it will. Unfortunately:

1. All headers end up being installed into /usr/include/<triplet>/SDL2.
   -- Not what we want.
2. /usr/include/<triplet>/SDL2 is hard-coded into sdl2-config, causing a file
    conflict for multi-arch installations.

> Things just work when you are using the facilities provided by the build
> system, instead of adding hack after hack when working against the build
> system.
>
> And doing it the right way automatically does the right thing for both
> pkg-config and sdl2-config.

Well, pkg-config at least displays the multi-arch include path.


More information about the Pkg-sdl-maintainers mailing list