Use uname instead of arch since Debian/Ubunutu/etc do not have arch

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@547 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
nigels 2009-02-20 05:59:07 +00:00
parent b7b9914963
commit ada95db57b

View File

@ -6,7 +6,7 @@ CFLAGS.EXTRA = -DGLEW_MX
endif endif
PICFLAG = -fPIC PICFLAG = -fPIC
LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME)
M_ARCH ?= $(shell arch) M_ARCH ?= $(shell uname -m)
ifeq (x86_64,${M_ARCH}) ifeq (x86_64,${M_ARCH})
LDFLAGS.EXTRA = -L/usr/X11R6/lib64 LDFLAGS.EXTRA = -L/usr/X11R6/lib64
LIBDIR = $(GLEW_DEST)/lib64 LIBDIR = $(GLEW_DEST)/lib64