From: Peter Korsgaard Date: Sat, 10 Dec 2011 20:11:37 +0000 (+0100) Subject: imlib2: fixup imlib2-config X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ad1885adbf14bfe731873dedd4e47ef72674b17;p=buildroot.git imlib2: fixup imlib2-config Ensure it doesn't add library search paths (-L) to linker flags. Signed-off-by: Peter Korsgaard --- diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk index 5f10503da1..f32b86512b 100644 --- a/package/imlib2/imlib2.mk +++ b/package/imlib2/imlib2.mk @@ -52,5 +52,13 @@ else IMLIB2_CONF_OPT += --without-id3 endif +# drop -L 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))