diff options
Diffstat (limited to 'src/util/taler-config.in')
-rw-r--r-- | src/util/taler-config.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util/taler-config.in b/src/util/taler-config.in index 5c997688c..beea2540e 100644 --- a/src/util/taler-config.in +++ b/src/util/taler-config.in | |||
@@ -1,5 +1,7 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | set -eu | ||
4 | |||
3 | if ! type gnunet-config >/dev/null; then | 5 | if ! type gnunet-config >/dev/null; then |
4 | echo "$0 needs gnunet-config to be installed" | 6 | echo "$0 needs gnunet-config to be installed" |
5 | exit 1 | 7 | exit 1 |
@@ -8,5 +10,8 @@ fi | |||
8 | # FIXME: not very portable ... | 10 | # FIXME: not very portable ... |
9 | # FIXME: should use "libdir" instead of prefix/lib, but somehow | 11 | # FIXME: should use "libdir" instead of prefix/lib, but somehow |
10 | # the recursive expansion does not work ;-(. | 12 | # the recursive expansion does not work ;-(. |
11 | export LD_PRELOAD=@prefix@/lib/libtalerutil.so | 13 | GC=`which gnunet-config` |
14 | ASAN="" | ||
15 | A=`ldd $GC | grep libasan` && ASAN=`echo $A | awk '{print $3 ":"}'` | ||
16 | export LD_PRELOAD=${ASAN}${LD_PRELOAD:-}:@prefix@/lib/libtalerutil.so | ||
12 | exec gnunet-config "$@" | 17 | exec gnunet-config "$@" |