diff options
Diffstat (limited to 'libraries/xerces-c/xerces-c.SlackBuild')
-rw-r--r-- | libraries/xerces-c/xerces-c.SlackBuild | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/libraries/xerces-c/xerces-c.SlackBuild b/libraries/xerces-c/xerces-c.SlackBuild index c4720ff6510e3..c67f85d1ca7c0 100644 --- a/libraries/xerces-c/xerces-c.SlackBuild +++ b/libraries/xerces-c/xerces-c.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=xerces-c VERSION=2.8.0 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -37,10 +37,16 @@ SRCVER=$(echo $VERSION | tr . _) if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" + BITS=32 elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" + BITS=32 elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + BITS=64 fi set -e @@ -58,7 +64,17 @@ cd src/xercesc/ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ XERCESCROOT="$TMP/$PRGNAM-src_$SRCVER" \ - ./runConfigure -p linux -c gcc -x g++ -m inmem -n socket -t native -r pthreads -P /usr + ./runConfigure \ + -p linux \ + -c gcc \ + -x g++ \ + -m inmem \ + -n socket \ + -t native \ + -r pthreads \ + -b $BITS \ + -P /usr \ + -C libdir=/usr/lib${LIBDIRSUFFIX} # I could not get this to compile with more than 1 job, XGizzmo XERCESCROOT="$TMP/$PRGNAM-src_$SRCVER" \ @@ -69,6 +85,11 @@ cd src/xercesc/ make install DESTDIR=$PKG cd - +# For now, it seems that the libdir flag is ignored, so... +if [ "$ARCH" = "x86_64" ]; then + mv $PKG/usr/lib $PKG/usr/lib64 +fi + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |