diff options
Diffstat (limited to 'source/a/userspace-rcu/userspace-rcu.SlackBuild')
-rwxr-xr-x | source/a/userspace-rcu/userspace-rcu.SlackBuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source/a/userspace-rcu/userspace-rcu.SlackBuild b/source/a/userspace-rcu/userspace-rcu.SlackBuild index 52989a9b3..b255163a4 100755 --- a/source/a/userspace-rcu/userspace-rcu.SlackBuild +++ b/source/a/userspace-rcu/userspace-rcu.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=userspace-rcu VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -97,7 +97,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --libdir=/lib${LIBDIRSUFFIX} \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PKGNAM-$VERSION \ @@ -111,6 +111,16 @@ make install DESTDIR=$PKG || exit 1 # Don't ship .la files: rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +# Move libraries out of /usr: +mkdir -p $PKG/lib${LIBDIRSUFFIX} +( cd $PKG/usr/lib${LIBDIRSUFFIX} + # Move libraries and symlinks: + for file in lib*.so.* ; do + mv $file ../../lib${LIBDIRSUFFIX} + ln -sf ../../lib${LIBDIRSUFFIX}/$file . + done +) + # Strip binaries: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |