imlib2: fixup imlib2-config
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 10 Dec 2011 20:11:37 +0000 (21:11 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 10 Dec 2011 21:13:15 +0000 (22:13 +0100)
Ensure it doesn't add library search paths (-L<dir>) to linker flags.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/imlib2/imlib2.mk

index 5f10503da1752a1e70a200ca80282b8acff3d725..f32b86512bc1df68d9a557078ed146921c595b8e 100644 (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))