egl: Fix gallium build when EGL is not installed on system
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 29 Jun 2010 11:28:41 +0000 (12:28 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 29 Jun 2010 11:28:41 +0000 (12:28 +0100)
src/gallium/targets/egl/Makefile

index b9db6bc2c9f7c65aac818ba91f82aa86a267bdea..8f9eb525908a17fb18f0b485708463b572d93114 100644 (file)
@@ -20,6 +20,7 @@ ST_PREFIX := st_
 PIPE_PREFIX := pipe_
 
 common_CPPFLAGS := \
+       -I$(TOP)/include \
        -I$(TOP)/src/gallium/auxiliary \
        -I$(TOP)/src/gallium/drivers \
        -I$(TOP)/src/gallium/include \
@@ -36,7 +37,7 @@ egl_CPPFLAGS := \
        -I$(TOP)/src/gallium/state_trackers/egl \
        -I$(TOP)/src/egl/main \
        -DPIPE_PREFIX=\"$(PIPE_PREFIX)\" -DST_PREFIX=\"$(ST_PREFIX)\"
-egl_SYS := -lm -ldl -lEGL
+egl_SYS := -lm -ldl -L$(TOP)/$(LIB_DIR) -lEGL
 egl_LIBS := $(TOP)/src/gallium/state_trackers/egl/libegl.a
 
 ifneq ($(findstring x11, $(EGL_PLATFORMS)),)