Skip to content
Snippets Groups Projects
Commit 7229bde6 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

added protection in check_symbol in case symbol file is not set.

git-svn-id: http://root.cern.ch/svn/root/trunk@11343 27541ba8-7e3a-0410-8455-c3a389f83636
parent e84d200a
No related branches found
No related tags found
No related merge requests found
...@@ -397,7 +397,8 @@ check_symbol() { ...@@ -397,7 +397,8 @@ check_symbol() {
# Assert that we got enough arguments # Assert that we got enough arguments
if test $# -ne 3 ; then if test $# -ne 3 ; then
echo "check_symbol: Not 3 arguments" echo "check_symbol: not 3 arguments"
found_symbol=0
return 1 return 1
fi fi
...@@ -406,8 +407,16 @@ check_symbol() { ...@@ -406,8 +407,16 @@ check_symbol() {
symbollib=$1 ; shift symbollib=$1 ; shift
symboldir=$1 symboldir=$1
if test "x$symbollib" = "x" ; then
found_symbol=0
return 1
fi
symbollib=`echo $symbollib | sed s/^-l/lib/` symbollib=`echo $symbollib | sed s/^-l/lib/`
symboldir=`echo $symboldir | sed s/^-L//`
if test ! "x$symboldir" = "x" ; then
symboldir=`echo $symboldir | sed s/^-L//`
fi
# Check if we got a specific argument as to where the library # Check if we got a specific argument as to where the library
# is to be found # is to be found
......
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