community/thttpd: fix build with gcc 14

The configure script fails to detect a working gcc. It seems non-trivial
to fix the configure scripts and it was difficult to find a git
repository or issue tracker and there have not been any new releases in
years.

Just use -fpermissive for now.
This commit is contained in:
Natanael Copa 2024-09-10 16:44:33 +02:00 committed by Francesco Colista
parent 518e4f63ee
commit 17995e3891

View file

@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=thttpd
pkgver=2.29
pkgrel=2
pkgrel=3
pkgdesc="Simple, small, portable, fast, and secure HTTP server"
url="http://www.acme.com/software/thttpd"
arch="all"
@ -28,7 +28,9 @@ prepare() {
}
build() {
./configure --prefix=/usr --mandir=/usr/share/man
CFLAGS="$CFLAGS -fpermissive" ./configure \
--prefix=/usr \
--mandir=/usr/share/man
sed -e 's/^CFLAGS =/CFLAGS +=/' \
-e '/^STATICFLAG =/c STATICFLAG =' \
-i Makefile */Makefile