diff options
author | Adrien Nader <adrien@notk.org> | 2012-07-15 13:49:49 +0200 |
---|---|---|
committer | Adrien Nader <adrien@notk.org> | 2012-07-15 13:49:49 +0200 |
commit | 75bdc7bb04076be86b46f3ea6e8f15f33e4d3d44 (patch) | |
tree | 04dfa28a6b182acffe1ceacf25cfce8160ff9d1d /l/zlib | |
parent | 765afe6984922646b35cbf2738cf27f7521537e1 (diff) |
all: SLKCFLAGS is always -O2: don't create a variable, use -O2 directly.
Diffstat (limited to 'l/zlib')
-rwxr-xr-x | l/zlib/zlib.SlackBuild | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/l/zlib/zlib.SlackBuild b/l/zlib/zlib.SlackBuild index 0f71420..b7cf0b2 100755 --- a/l/zlib/zlib.SlackBuild +++ b/l/zlib/zlib.SlackBuild @@ -35,21 +35,19 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) -TMP=${TMP:-/tmp} -PKG=$TMP/package-zlib - case "${HOST_TRIPLET}" in i686-w64-mingw32) - SLKCFLAGS="-O3 -march=i686" LIBDIRSUFFIX="" ;; x86_64-w64-mingw32) - SLKCFLAGS="-O3" LIBDIRSUFFIX="64" ;; esac +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-zlib + rm -rf $PKG mkdir -p $TMP $PKG @@ -68,14 +66,14 @@ find . \ # We only call configure so that it creates "zlib.pc" from "zlib.pc.in". zlib's # build system is pretty crappy and doesn't handle cross-compilation: we have to # call a makefile directly instead. -CFLAGS="$SLKCFLAGS" \ +CFLAGS="-O3" \ ./configure \ --prefix=/${PREFIX} \ --libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \ --shared CC=${HOST_TRIPLET}-gcc \ - CFLAGS="$SLKCFLAGS -Wall" \ + CFLAGS="-O3 -Wall" \ LD=${HOST_TRIPLET}-gcc \ AS=${HOST_TRIPLET}-gcc \ AR="${HOST_TRIPLET}-ar" \ |