2012-02-05 11:35:58 -05:00
|
|
|
#################################################################
|
|
|
|
# #
|
2024-07-19 11:43:27 -04:00
|
|
|
# Copyright 2010, 2012 Fidelity Information Services, Inc #
|
2012-02-05 11:35:58 -05:00
|
|
|
# #
|
|
|
|
# This source code contains the intellectual property #
|
|
|
|
# of its copyright holder(s), and is made available #
|
|
|
|
# under a license. If you do not know the terms of #
|
|
|
|
# the license, please stop and do not read further. #
|
|
|
|
# #
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
###########################################################################################
|
|
|
|
#
|
|
|
|
# set_library_path.csh - setenv LIBPATH and LD_LIBRARY_PATH
|
|
|
|
#
|
|
|
|
# The calling gtm installation script should sould source this script in order to
|
|
|
|
# avoid duplication of 'setenv LD_LIBRARY_PATH'.
|
|
|
|
###########################################################################################
|
|
|
|
|
|
|
|
if ($HOSTOS == "AIX" || $HOSTOS == "SunOS" || $HOSTOS == "OS/390") then
|
|
|
|
setenv LIBPATH /usr/local/lib64:/usr/local/lib
|
|
|
|
setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/local/lib
|
|
|
|
else
|
2024-07-19 11:43:27 -04:00
|
|
|
# Its worth noting that SuSE+RedHat, Debian & Ubuntu handle the lib32 vs lib64 differently
|
2012-02-05 11:35:58 -05:00
|
|
|
# Debian way: /lib 32bit points to /emul/ia32-linux/lib
|
|
|
|
# /lib64 64bit
|
2024-07-19 11:43:27 -04:00
|
|
|
# Debian 7 layout is uniform across archs, but is more annoying than before
|
|
|
|
# /usr/lib/i386-linux-gnu 32bit
|
|
|
|
# /usr/lib/x86_64-linux-gnu 64bit
|
2012-02-05 11:35:58 -05:00
|
|
|
# Ubuntu way: /lib ARCH default points to either lib32 or lib64
|
|
|
|
# /lib32 32bit
|
|
|
|
# /lib64 64bit
|
|
|
|
# Redhat/SuSE way: /lib 32bit
|
|
|
|
# /lib64 64bit
|
|
|
|
if ( ! $?gtm_inc ) then
|
|
|
|
echo "ERROR : gtm_inc not defined!"
|
|
|
|
exit
|
|
|
|
endif
|
|
|
|
|
2024-07-19 11:43:27 -04:00
|
|
|
# please keep in sync with sr_unix/gtm_test_install.csh
|
2012-02-05 11:35:58 -05:00
|
|
|
if (( -e $gtm_inc/s390.h ) || ( -e $gtm_inc/x86_64.h )) then
|
2024-07-19 11:43:27 -04:00
|
|
|
setenv LD_LIBRARY_PATH "/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib/x86_64-linux-gnu:/usr/lib"
|
2012-02-05 11:35:58 -05:00
|
|
|
else
|
2024-07-19 11:43:27 -04:00
|
|
|
setenv LD_LIBRARY_PATH "/usr/local/lib:/usr/lib:/usr/lib/i386-linux-gnu:/usr/lib32"
|
2012-02-05 11:35:58 -05:00
|
|
|
endif
|
|
|
|
endif
|