imlib2: fixup imlib2-config

Ensure it doesn't add library search paths (-L<dir>) to linker flags.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2011-12-10 21:11:37 +01:00
parent 5ddcdb4ceb
commit 8ad1885adb
1 changed files with 8 additions and 0 deletions

View File

@ -52,5 +52,13 @@ else
IMLIB2_CONF_OPT += --without-id3
endif
# drop -L<dir> from linker flags
define IMLIB2_FIXUP_IMLIB2_CONFIG
$(SED) 's/-L[^ ]*//g' \
$(STAGING_DIR)/usr/bin/imlib2-config
endef
IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
$(eval $(call AUTOTARGETS))