diff --git a/sys-process/cronie/cronie-1.5.4-r1.ebuild b/sys-process/cronie/cronie-1.5.4-r1.ebuild index 06e156a8cb73d..c56c8960c7f02 100644 --- a/sys-process/cronie/cronie-1.5.4-r1.ebuild +++ b/sys-process/cronie/cronie-1.5.4-r1.ebuild @@ -54,8 +54,9 @@ src_configure() { ) if use anacron; then - use elibc_musl && append-cflags "-lobstack" - use elibc_uclibc && append-cflags "-lobstack" + if use elibc_musl || use elibc_uclibc ; then + append-cflags "-lobstack" + fi fi SPOOL_DIR="/var/spool/cron/crontabs" \ ANACRON_SPOOL_DIR="/var/spool/anacron" \ diff --git a/sys-process/cronie/cronie-1.5.5.ebuild b/sys-process/cronie/cronie-1.5.5.ebuild index d6478c60ec6c6..b27c909f26e06 100644 --- a/sys-process/cronie/cronie-1.5.5.ebuild +++ b/sys-process/cronie/cronie-1.5.5.ebuild @@ -54,8 +54,9 @@ src_configure() { ) if use anacron; then - use elibc_musl && append-cflags "-lobstack" - use elibc_uclibc && append-cflags "-lobstack" + if use elibc_musl || use elibc_uclibc ; then + append-cflags "-lobstack" + fi fi SPOOL_DIR="/var/spool/cron/crontabs" \ ANACRON_SPOOL_DIR="/var/spool/anacron" \