This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Add x32 dummy sysctl
> On Tue, May 22, 2012 at 1:39 PM, Roland McGrath <firstname.lastname@example.org> wrote:
> >> ?ifeq ($(subdir),misc)
> >> -sysdep_routines += sysctl clone llseek umount umount2 readahead \
> >> +include $(firstword $(wildcard $(sysdirs:=/sysctl.mk)))
> >> +
> >> +sysdep_routines += $(sysctl) clone llseek umount umount2 readahead \
> > This is OK. ?But on further reflection, I would just have sysctl.mk do
> > "sysdep_routines +=" and not complicate things more with the sysctl variable.
> I tried it and it doesn't work since all sysctl.mk files are included.
That should not be the case.
include $(firstword $(wildcard $(sysdirs:=/sysctl.mk)))
picks just the first one that exists (that why firstword is there).