network/bozohttpd: Update cflags.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
bfd0817107
commit
8a23ec9c5e
|
@ -41,16 +41,16 @@ PKG=$TMP/package-$PRGNAM
|
|||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-march=i586 -mtune=i686"
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-march=i686 -mtune=i686"
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-fPIC"
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS=""
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
|
@ -72,7 +72,7 @@ find -L . \
|
|||
cp Makefile.boot Makefile
|
||||
# Fix build (from Arch Linux' AUR).
|
||||
sed -i 's/d_namlen/d_reclen/g' bozohttpd.c
|
||||
make
|
||||
make OPT="$SLKCFLAGS"
|
||||
|
||||
mkdir -p $PKG/usr/{bin,man/man8}
|
||||
install -m755 bozohttpd $PKG/usr/bin
|
||||
|
|
Loading…
Reference in New Issue