[oe-commits] Graeme Gregory : xorg-driver-common.inc : fix the header file detections now we are using

GIT User account git at amethyst.openembedded.net
Wed Nov 12 15:31:05 UTC 2008


Module: openembedded.git
Branch: shared/xorg-7.4-update
Commit: a2267085ab6a2d2e04f70794cba393ed3b6cad1c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a2267085ab6a2d2e04f70794cba393ed3b6cad1c

Author: Graeme Gregory <dp at xora.org.uk>
Date:   Tue Nov  4 17:24:07 2008 +0000

xorg-driver-common.inc : fix the header file detections now we are using
sysroot. Seems to actually work in use, but maybe there is a better way!

---

 packages/xorg-driver/xorg-driver-common.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/xorg-driver/xorg-driver-common.inc b/packages/xorg-driver/xorg-driver-common.inc
index a75e409..7126b8b 100644
--- a/packages/xorg-driver/xorg-driver-common.inc
+++ b/packages/xorg-driver/xorg-driver-common.inc
@@ -25,10 +25,10 @@ do_stage() {
 # Of course this will blow up when cross compiling.
 
 do_configure_prepend() {
-	incdir=${STAGING_INCDIR}/xorg
+	incdir=${layout_includedir}/xorg
 	for f in dri.h sarea.h dristruct.h exa.h damage.h; do
 		path="$incdir/$f"
-		if [ -f "$path" ]; then
+		if [ -f "${STAGING_DIR_HOST}/$path" ]; then
 			p=`echo "$path" | sed 'y%*+%pp%;s%[^_[:alnum:]]%_%g'`
 			eval "export ac_cv_file_$p=yes"
 		fi





More information about the Openembedded-commits mailing list