sdl: disable rpath via configure option
authorRodrigo Rebello <rprebello@gmail.com>
Thu, 17 Mar 2016 06:02:22 +0000 (03:02 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 17 Mar 2016 09:14:58 +0000 (10:14 +0100)
commit2f259304b9816e2c40a358041370a14d6928eeee
treebb9b35c13af89adb07a650be305bee5ea92c2a7f
parentc9d87e73473d8316aa3b4be53fcdf6826a500114
sdl: disable rpath via configure option

The -rpath option was being stripped from sdl-config via a post install
staging hook, but the same wasn't being done for sdl.pc. Because of
this, packages that detect SDL via pkg-config ended up passing
'-Wl,-rpath,/usr/lib' to the linker, which caused build failures under
certain circumstances since libraries were being looked for in the wrong
directory.

Fix by passing the --disable-rpath option to the SDL configure script,
which takes care of disabling -rpath everywhere. This also allows the
SDL_FIXUP_SDL_CONFIG hack to be completely removed.

Fixes:

  http://autobuild.buildroot.net/results/624/62499217eeaf3228b46652e3f65776d7ece8fce6/
  http://autobuild.buildroot.net/results/cc1/cc1f78f6c43e3a7bf3ed80d759d9c4d7363d0e48/

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sdl/sdl.mk