This reverts commit
53e8f2dace57cd428e046059ac7172e58d206429.
This breaks the multi-arch usage. The original code uses ${exec_prefix}
intentionally together with \$LIB (note the backslash here), so that
ld.so itself expands the right path for both 32 and 64bit archs.
Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=874331
Signed-off-by: Takashi Iwai <tiwai@suse.de>
if [ -d /proc/asound ]; then
prefix=@prefix@
- libdir=@libdir@
- LD_PRELOAD=${libdir}/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
+ exec_prefix=@exec_prefix@
+ LD_PRELOAD=${exec_prefix}/\$LIB/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
else
exec "$@"
fi