diff options
Diffstat (limited to 'development/gtkdialog/gtkdialog.SlackBuild')
-rw-r--r-- | development/gtkdialog/gtkdialog.SlackBuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/development/gtkdialog/gtkdialog.SlackBuild b/development/gtkdialog/gtkdialog.SlackBuild index fc4ddf0f4aa3..98a2ec5cfd0c 100644 --- a/development/gtkdialog/gtkdialog.SlackBuild +++ b/development/gtkdialog/gtkdialog.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=gtkdialog VERSION=0.7.20 ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -36,6 +38,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ -o -perm 400 \) -exec chmod 644 {} \; +# Fix an infinite loop caused by a pair of statements not being contained in +# braces. Thanks to David B. Cortarello +patch -p1 < $CWD/gtkdialog-0.7.20-variables-export-fix.patch + CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr make make DESTDIR=$PKG install-strip |