From aeb1d3309620bb7fd7f8aec67f495e569cd7385e Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Mon, 17 Sep 2012 17:42:14 -0500 Subject: [PATCH] #39 patch for PPC64 linux Makefile --- config/Makefile.linux | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/config/Makefile.linux b/config/Makefile.linux index 4bc9a53..234adc6 100644 --- a/config/Makefile.linux +++ b/config/Makefile.linux @@ -2,12 +2,19 @@ NAME = $(GLEW_NAME) CC = cc LD = cc M_ARCH ?= $(shell uname -m) +ARCH64 = false ifeq (x86_64,${M_ARCH}) -LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 -LIBDIR = $(GLEW_DEST)/lib64 + ARCH64 = true +endif +ifeq (ppc64,${M_ARCH}) + ARCH64 = true +endif +ifeq (${ARCH64},true) + LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 + LIBDIR = $(GLEW_DEST)/lib64 else -LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib -LIBDIR = $(GLEW_DEST)/lib + LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib + LIBDIR = $(GLEW_DEST)/lib endif LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 LDFLAGS.STATIC = -Wl,-Bstatic