--- aalib/configure.in.orig 2011-12-18 12:10:43.000000000 +0400 +++ aalib/configure.in 2011-12-18 12:24:58.478140254 +0400 @@ -374,7 +374,7 @@ esac # Set runtime shared library paths as needed if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then - AALIB_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" + AALIB_RLD_FLAGS="" fi if test $ARCH = solaris; then --- aalib/configure.orig 2011-12-18 12:10:43.000000000 +0400 +++ aalib/configure 2011-12-18 12:24:29.469996403 +0400 @@ -4316,7 +4316,7 @@ esac # Set runtime shared library paths as needed if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then - AALIB_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" + AALIB_RLD_FLAGS="" fi if test $ARCH = solaris; then