From: Aleš Křenek Date: Thu, 19 Apr 2007 08:56:44 +0000 (+0000) Subject: lib64 fix X-Git-Tag: glite-lb-client-interface_R_2_3_1_1~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=55582062b8f9d4f0006adac3f39372492c3247ec;p=jra1mw.git lib64 fix --- 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