Skip to content
Browse files

sdl: use <pkg>_CONFIG_SCRIPTS for sdl-config

Use the <pkg>_CONFIG_SCRIPTS mechanism to handle the sdl-config
script, so that it properly gets removed from the target. However, we
can't completely remove the manual fixup, because it also takes care
of removing the -Wl,-rpath option, which the general
<pkg>_CONFIG_SCRIPTS doesn't do.

Signed-off-by: Thomas Petazzoni <>
Signed-off-by: Peter Korsgaard <>
  • Loading branch information...
1 parent e7d8d85 commit 95da46dfd6536a13768ef029a97c14de6805a947 @tpetazzoni tpetazzoni committed with jacmet Mar 17, 2013
Showing with 3 additions and 6 deletions.
  1. +3 −6 package/sdl/
9 package/sdl/
@@ -57,13 +57,10 @@ SDL_CONF_OPT += --enable-pulseaudio=no \
--disable-nasm \
-# Fixup prefix= and exec_prefix= in sdl-config, and remove the
-# -Wl,-rpath option.
+SDL_CONFIG_SCRIPTS = sdl-config
+# Remove the -Wl,-rpath option.
- $(SED) 's%prefix=/usr%prefix=$(STAGING_DIR)/usr%' \
- $(STAGING_DIR)/usr/bin/sdl-config
- $(SED) 's%exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \
- $(STAGING_DIR)/usr/bin/sdl-config
$(SED) 's%-Wl,-rpath,\$${libdir}%%' \

0 comments on commit 95da46d

Please sign in to comment.
Something went wrong with that request. Please try again.