mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 22:56:33 +00:00
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 <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
e7d8d855f0
commit
95da46dfd6
@ -57,13 +57,10 @@ SDL_CONF_OPT += --enable-pulseaudio=no \
|
|||||||
--disable-nasm \
|
--disable-nasm \
|
||||||
--disable-video-ps3
|
--disable-video-ps3
|
||||||
|
|
||||||
# Fixup prefix= and exec_prefix= in sdl-config, and remove the
|
SDL_CONFIG_SCRIPTS = sdl-config
|
||||||
# -Wl,-rpath option.
|
|
||||||
|
# Remove the -Wl,-rpath option.
|
||||||
define SDL_FIXUP_SDL_CONFIG
|
define SDL_FIXUP_SDL_CONFIG
|
||||||
$(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}%%' \
|
$(SED) 's%-Wl,-rpath,\$${libdir}%%' \
|
||||||
$(STAGING_DIR)/usr/bin/sdl-config
|
$(STAGING_DIR)/usr/bin/sdl-config
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user