From 55582062b8f9d4f0006adac3f39372492c3247ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 19 Apr 2007 08:56:44 +0000 Subject: [PATCH] lib64 fix --- org.glite.lb.proxy/Makefile | 10 ++++++++-- org.glite.lb.server/Makefile | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/org.glite.lb.proxy/Makefile b/org.glite.lb.proxy/Makefile index ecfbbc3..7335128 100644 --- a/org.glite.lb.proxy/Makefile +++ b/org.glite.lb.proxy/Makefile @@ -63,11 +63,17 @@ GLOBUS_LIBS:= -L${globus_prefix}/lib \ -lglobus_common_${nothrflavour} \ -lglobus_gssapi_gsi_${nothrflavour} \ +archlib:=lib +host_cpu:=${shell uname -m} +ifeq (${host_cpu},x86_64) + archlib:=lib64 +endif + ifneq (${mysql_prefix},/usr) ifeq ($(shell echo ${mysql_version} | cut -d. -f1,2),4.1) - mysqlib := -L${mysql_prefix}/lib/mysql + mysqlib := -L${mysql_prefix}/${archlib}/mysql else - mysqlib := -L${mysql_prefix}/lib + mysqlib := -L${mysql_prefix}/${archlib} endif endif diff --git a/org.glite.lb.server/Makefile b/org.glite.lb.server/Makefile index e514603..26dabcb 100644 --- a/org.glite.lb.server/Makefile +++ b/org.glite.lb.server/Makefile @@ -129,11 +129,17 @@ GLOBUS_LIBS:= -L${globus_prefix}/lib \ gsoap_bin_prefix:=${shell if [ -x ${gsoap_prefix}/bin/soapcpp2 ]; then echo ${gsoap_prefix}/bin; else echo ${gsoap_prefix}; fi } +archlib:=lib +host_cpu:=${shell uname -m} +ifeq (${host_cpu},x86_64) + archlib:=lib64 +endif + ifneq (${mysql_prefix},/usr) ifeq ($(shell echo ${mysql_version} | cut -d. -f1,2),4.1) - mysqlib := -L${mysql_prefix}/lib/mysql + mysqlib := -L${mysql_prefix}/${archlib}/mysql else - mysqlib := -L${mysql_prefix}/lib + mysqlib := -L${mysql_prefix}/${archlib} endif endif -- 1.8.2.3