diff options
author | Jani Välimaa <wally@mageia.org> | 2024-02-22 15:54:05 +0200 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2024-02-22 15:54:05 +0200 |
commit | 9e9db1e7dae71cb00720a97693369d445463cfbf (patch) | |
tree | afe057d0fedcc3d2e518c560ccfbd24830fa3a6d | |
parent | c26115627c856f451b58878e8dcca3d7e5d4589b (diff) | |
download | rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar.gz rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar.bz2 rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar.xz rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.zip |
rpmeval: fix build with gcc13
Fixes the following build error with gcc >= 13.
rpmeval.c: In function 'main':
rpmeval.c:22:14: error: implicit declaration of function 'rpmReadConfigFiles' [-Wimplicit-function-declaration]
22 | if (rc = rpmReadConfigFiles(NULL, NULL)) {
| ^~~~~~~~~~~~~~~~~~
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | configure.ac | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1,3 +1,4 @@ +- rpmeval: fix build with gcc13 - rpmrc: add -fstack-clash-protection to default flags for all supported arches - rpmrc: add -fcf-protection=full to x86 default flags - rpmrc: add -mbranch-protection=standard to aarch64 default flags diff --git a/configure.ac b/configure.ac index 7fb6de2..ea92d8d 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,7 @@ AC_CONFIG_FILES([ dnl See if we have pkgconfig for rpm, resort to old behavior if not PKG_CHECK_MODULES([RPM], [rpm], [ AC_DEFINE_UNQUOTED([HAVE_RPM],1,[Define if RPM backend is available]) + AC_CHECK_HEADERS([rpm/rpmlib.h]) CPPFLAGS="$RPM_CFLAGS $CPPFLAGS" LDFLAGS="$RPM_LIBS $LDFLAGS" ], [ |