From 326037617a0ef4ddf60324e55ce11f4bfded2d7f Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Thu, 18 May 2023 16:27:04 +0000
Subject: [PATCH] main/elfutils: fix error being undefined in staticlib

closes #14370
---
 main/elfutils/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/elfutils/APKBUILD b/main/elfutils/APKBUILD
index 611fb91c96bb..ab19bfe26ed8 100644
--- a/main/elfutils/APKBUILD
+++ b/main/elfutils/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=elfutils
 pkgver=0.189
-pkgrel=2
+pkgrel=3
 pkgdesc="Utilities and DSOs to handle ELF files and DWARF data"
 url="http://elfutils.org/"
 arch="all"
@@ -51,7 +51,7 @@ source="https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2
 #     - CVE-2017-7608
 
 build() {
-	CFLAGS="$CFLAGS -Wno-error -Wno-null-dereference" \
+	CFLAGS="$CFLAGS -D_GNU_SOURCE -Wno-error -Wno-null-dereference" \
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-- 
GitLab