freetype: fix host headers as well
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 6 Dec 2013 10:13:28 +0000 (07:13 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 6 Dec 2013 11:22:12 +0000 (12:22 +0100)
Like on 0a9cedbcf49641b2569e0a137818ad9f8c539edd we also need to fix the
headers for the host variant.
Fixes:
http://autobuild.buildroot.net/results/261/261d6a59f144e44e51b38de98a7355a9eb8ac791/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/freetype/freetype.mk

index 0f1bb88ee4915410aaa4f86630deebb40fcf3bb7..c97cc1a7c862590bbbacf128e1e8b34228b05422 100644 (file)
@@ -63,6 +63,10 @@ define FREETYPE_FIX_FREETYPE_INCLUDE
        ln -sf . $(STAGING_DIR)/usr/include/freetype2/freetype
 endef
 FREETYPE_POST_INSTALL_STAGING_HOOKS += FREETYPE_FIX_FREETYPE_INCLUDE
+define HOST_FREETYPE_FIX_FREETYPE_INCLUDE
+       ln -sf . $(HOST_DIR)/usr/include/freetype2/freetype
+endef
+HOST_FREETYPE_POST_INSTALL_HOOKS += HOST_FREETYPE_FIX_FREETYPE_INCLUDE
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))