From 10f2c7054e50f170e61bf97c750abf3f66d294f4 Mon Sep 17 00:00:00 2001 From: ikits Date: Thu, 18 Jan 2007 22:11:56 +0000 Subject: [PATCH] added linux makefile patch git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@462 783a27ee-832a-0410-bc00-9f386506c6dd --- config/Makefile.linux | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/Makefile.linux b/config/Makefile.linux index 69846ab..1947827 100644 --- a/config/Makefile.linux +++ b/config/Makefile.linux @@ -6,7 +6,12 @@ CFLAGS.EXTRA = -DGLEW_MX endif PICFLAG = -fPIC LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) +M_ARCH ?= $(shell arch) +ifeq (${M_ARCH},x86_64)) +LDFLAGS.EXTRA = -L/usr/X11R6/lib64 +else LDFLAGS.EXTRA = -L/usr/X11R6/lib +endif LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 LDFLAGS.STATIC = -Wl,-Bstatic LDFLAGS.DYNAMIC = -Wl,-Bdynamic