summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2021-08-22 13:52:24 +0200
committerFabian Groffen <grobian@gentoo.org>2021-08-22 14:00:11 +0200
commit307be9070bf83c88a4b49af412ff7303d7ea68a5 (patch)
treee93d1fc97e4bbc11084f31828e3a50467fd10964 /sys-apps/findutils
parentmedia-gfx/img2pdf: try to fix test deps USE flags (diff)
downloadgentoo-307be9070bf83c88a4b49af412ff7303d7ea68a5.tar.gz
gentoo-307be9070bf83c88a4b49af412ff7303d7ea68a5.tar.bz2
gentoo-307be9070bf83c88a4b49af412ff7303d7ea68a5.zip
sys-apps/findutils-4.8.0: fix build on darwin
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'sys-apps/findutils')
-rw-r--r--sys-apps/findutils/findutils-4.8.0.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-apps/findutils/findutils-4.8.0.ebuild b/sys-apps/findutils/findutils-4.8.0.ebuild
index 47dbdb5d3142..9e47fcc65275 100644
--- a/sys-apps/findutils/findutils-4.8.0.ebuild
+++ b/sys-apps/findutils/findutils-4.8.0.ebuild
@@ -47,6 +47,12 @@ src_configure() {
append-ldflags -static
fi
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00050.html
+ # https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00051.html
+ append-cppflags '-D__nonnull\(X\)='
+ fi
+
program_prefix=$(usex userland_GNU '' g)
local myeconfargs=(
--with-packager="Gentoo"