add preload obscenity

This commit is contained in:
Christian Grothoff 2020-01-18 19:49:33 +01:00
parent 5c46951821
commit 6bdccb5c7b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -13,5 +13,9 @@ fi
GC=`which gnunet-config`
ASAN=""
A=`ldd $GC | grep libasan` && ASAN=`echo $A | awk '{print $3 ":"}'`
if test -z $ASAN
then
A=`ldd @prefix@/lib/libtalerutil.so | grep libasan` && ASAN=`echo $A | awk '{print $3 ":"}'`
fi
export LD_PRELOAD=${ASAN}${LD_PRELOAD:-}:@prefix@/lib/libtalerutil.so
exec gnunet-config "$@"