From 895cf9e27daccf79b5af5eb473f86cca76875122 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 24 Feb 2009 13:30:03 +0000 Subject: [PATCH] mesa3d: fix makedepend arguments Make sure makedepends only searches the gcc/staging dir, and not the host include dirs. --- package/x11r7/mesa3d/mesa3d.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/x11r7/mesa3d/mesa3d.mk b/package/x11r7/mesa3d/mesa3d.mk index 8866440841..01df68731e 100644 --- a/package/x11r7/mesa3d/mesa3d.mk +++ b/package/x11r7/mesa3d/mesa3d.mk @@ -24,6 +24,8 @@ endif MESA_BUILD_ENV=$(TARGET_CONFIGURE_OPTS) MESA_CONFIG_FILE=$(MESA3D_DIR)/configs/$(MESA_TARGET) +MESA_GCCINCLUDE=$(shell $(TARGET_CC) -print-search-dirs|grep '^install:'|sed 's/^install: //')/include + #MESA_DRIVERS= i810 i915 i965 mga mach64 r128 r200 r300 s3v savage sis ffb tdfx trident unichrome MESA_DRIVERS= @@ -46,15 +48,14 @@ $(MESA3D_DIR)/.configured: $(MESA3D_DIR)/.extracted echo "USING_EGL = 0" && \ echo "X11_INCLUDES = " && \ echo "EXTRA_LIB_PATH = " && \ - echo "PROGRAM_DIRS =" \ + echo "PROGRAM_DIRS =" && \ + echo "MKDEP_OPTIONS = -fdepend -Y$(STAGING_DIR)/usr/include -I$(MESA_GCCINCLUDE)" \ ) >> $(MESA_CONFIG_FILE) touch $@ $(MESA3D_DIR)/.built: $(MESA3D_DIR)/.configured - gccinc=$$($(TARGET_CC) -print-search-dirs | grep '^install:' | sed 's@^install: @@')include; \ rm -f $(MESA3D_DIR)/config/current env $(MESA_BUILD_ENV) $(MAKE1) \ - MKDEP="makedepend -I$$gccinc" \ CC=$(TARGET_CC) CXX=$(TARGET_CXX) CC_FOR_BUILD=/usr/bin/gcc \ -C $(MESA3D_DIR) $(MESA_TARGET) touch $@ -- 2.30.2