Browse Source

tsocks: Fix sed statement (#2475)

android-5
Justsoos 7 years ago
committed by Fredrik Fornwall
parent
commit
59ba473b8d
  1. 2
      packages/tsocks/tsocks.patch

2
packages/tsocks/tsocks.patch

@ -17,7 +17,7 @@ index 8380d9c..7d1df7a 100755
;;
off)
- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'`
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed "s:$PREFIX/lib/libtsocks.so \?::"`
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed "s:$PREFIX/lib/libtsocks.so *::"`
if [ -z "$LD_PRELOAD" ]
then
unset LD_PRELOAD

Loading…
Cancel
Save