added linux makefile patch

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@462 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2007-01-18 22:11:56 +00:00
parent cf628518f9
commit 10f2c7054e

View File

@ -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