Skip to content
Snippets Groups Projects
Commit 6dcb872c authored by Rene Brun's avatar Rene Brun
Browse files

From Lorenzo:

patch for configure to use the static GSL libraries.
When using it on a Linux 64 bit machines (like SLC4 with gcc3.4), one must have compiled GSL with the option -fPIC also for the static library.
This is done by using the GSL configure option --with-pic

With these changes the LD_LIBRARY_PATH to GSL is not needed anymore when running or building stressMathMore


git-svn-id: http://root.cern.ch/svn/root/trunk@21324 27541ba8-7e3a-0410-8455-c3a389f83636
parent 96d2dc70
No related branches found
No related tags found
No related merge requests found
......@@ -3776,6 +3776,10 @@ if test ! "x$enable_mathmore" = "xno"; then
# Check for GSL include and library
gslskip=
hasmathmore="define"
# by default use now static GSL library everywhere
#enable_gsl_shared=$enable_shared"
enable_gsl_shared="no"
check_header "gsl/gsl_version.h" "$gslincdir" $GSL $GSL/include \
$GSL/api /usr/local/include /usr/include /opt/gsl/include \
$finkdir/include
......@@ -3800,7 +3804,7 @@ if test ! "x$enable_mathmore" = "xno"; then
if test ! "x$gslflags" = "x"; then
#check for the library now
gsllibdir0=$gsllibdir
check_library "libgsl gslML gsl" "$enable_shared" "$gsllibdir" \
check_library "libgsl gslML gsl" "$enable_gsl_shared" "$gsllibdir" \
$GSL $GSL/lib $GSL/.libs /usr/local/lib /usr/lib /opt/gsl/lib \
$finkdir/lib
......@@ -3810,7 +3814,7 @@ if test ! "x$enable_mathmore" = "xno"; then
# in case of shared libs (gsllibdir is not empty) need gslcblas
# assume libgslcblas is in same dir as libgsl
#if test ! "x$gsllibdir" = "x"; then
check_library "libgslcblas gslcblasML gslcblas cblas" "$enable_shared" "$gsllibdir0" \
check_library "libgslcblas gslcblasML gslcblas cblas" "$enable_gsl_shared" "$gsllibdir0" \
$GSL $GSL/lib $GSL/.libs /usr/local/lib /usr/lib /opt/gsl/lib \
$finkdir/lib
if test ! "x$found_lib" = "x"; then
......@@ -3860,7 +3864,10 @@ if test ! "x$enable_mathmore" = "xno"; then
# and linker flags
result "ok"
gslflags=`gsl-config --cflags`
gsllibs=`gsl-config --libs`
#gsllibs=`gsl-config --libs`
#use static libs
gslprefix=`gsl-config --prefix`
gsllibs="$gslprefix/lib/libgsl.a $gslprefix/lib/libgslcblas.a"
gsllibdir=""
gslversion=$gsl_version
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment