[Buildroot] [git commit] imlib2: fix imlib2-config

Peter Korsgaard jacmet at sunsite.dk
Fri Jan 4 21:31:48 UTC 2013


commit: http://git.buildroot.net/buildroot/commit/?id=6ba5ac89f890b1dd515fc906bbd82cfdc373e5a2
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

[Peter: use a single sed invocation]
Signed-off-by: Stefan Fröberg <stefan.froberg at petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
 package/imlib2/imlib2.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk
index fa0f578..c7029ae 100644
--- a/package/imlib2/imlib2.mk
+++ b/package/imlib2/imlib2.mk
@@ -57,7 +57,9 @@ endif
 
 # drop -L<dir> from linker flags
 define IMLIB2_FIXUP_IMLIB2_CONFIG
-	$(SED) 's/-L[^ ]*//g' \
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+		-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+		-e  's/-L[^ ]*//g' \
 		$(STAGING_DIR)/usr/bin/imlib2-config
 endef
 


More information about the buildroot mailing list