diff options
Diffstat (limited to 'development/re2c/re2c.SlackBuild')
-rw-r--r-- | development/re2c/re2c.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/development/re2c/re2c.SlackBuild b/development/re2c/re2c.SlackBuild index c07ea8a040945..9ff8a0d122639 100644 --- a/development/re2c/re2c.SlackBuild +++ b/development/re2c/re2c.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for re2c -# Copyright 2008 LukenShiro <lukenshiro@ngi.it> +# Copyright 2008-9 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - PRGNAM=re2c VERSION=${VERSION:-0.13.5} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -39,8 +38,13 @@ DOCFILES="README CHANGELOG htdocs/manual.html doc/loplas.ps" if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e # Exit on most errors @@ -61,7 +65,8 @@ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --docdir=/usr/doc/$PRGNAM-$VERSION make # in order to regenerate scanner.cc file |