link libEGL with Xlib
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 17:40:23 +0000 (11:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 17:47:08 +0000 (11:47 -0600)
src/egl/main/Makefile

index 5b341a19be2a4a89346eeaf305007fda7522e572..96742bb4bc65b2ded4602a4378e7bfd161e70083 100644 (file)
@@ -46,6 +46,8 @@ OBJECTS = $(SOURCES:.c=.o)
 # Undefined for now
 LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
 
+LIBS = -lX11
+
 
 .c.o:
        $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@
@@ -60,7 +62,7 @@ library: $(TOP)/$(LIB_DIR)/libEGL.so
 
 $(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
        $(TOP)/bin/mklib -o EGL -major 1 -minor 0 \
-               -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)
+               -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS) $(LIBS)