From: Thomas Petazzoni Date: Thu, 7 Mar 2013 10:18:37 +0000 (+0000) Subject: qt5: add macro to fixup Qt5 .la and .prl files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1737b5648c9f778149eb7da5897b66a9577d22c4;p=buildroot.git qt5: add macro to fixup Qt5 .la and .prl files Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- diff --git a/package/qt5/qt5.mk b/package/qt5/qt5.mk index 8b1a7ed3ea..f22050876c 100644 --- a/package/qt5/qt5.mk +++ b/package/qt5/qt5.mk @@ -1 +1,11 @@ include package/qt5/*/*.mk + +define QT5_LA_PRL_FILES_FIXUP + for i in $$(find $(STAGING_DIR)/usr/lib* -name "libQt5*.la"); do \ + $(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:g" $$i; \ + $(SED) "/^dependency_libs=/s%-L/usr/lib %%g" $$i ; \ + done + for i in $$(find $(STAGING_DIR)/usr/lib* -name "libQt5*.prl"); do \ + $(SED) "s%-L/usr/lib%%" $$i; \ + done +endef