mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-db/kyotocabinet: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/879653 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
https://bugs.gentoo.org/879653
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -194,7 +194,7 @@ test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS"
|
||||
AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND")
|
||||
|
||||
printf 'checking for useless warnings... '
|
||||
-if printf 'main() {}' | $CC -xc \
|
||||
+if printf 'int main(void) {}' | $CC -xc \
|
||||
-Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o config.tmp - >config.tmp 2>&1
|
||||
then
|
||||
MYCFLAGS="$MYCFLAGS -Wno-unused-but-set-variable -Wno-unused-but-set-parameter"
|
||||
@@ -23,6 +23,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/fix_configure-1.2.62.patch
|
||||
"${FILESDIR}"/${PN}-1.2.76-configure-8-byte-atomics.patch
|
||||
"${FILESDIR}"/${PN}-1.2.76-flags.patch
|
||||
"${FILESDIR}"/${PN}-1.2.79-configure-clang16.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
Reference in New Issue
Block a user