Stupid Newbie Question?
Peter S. Mazinger
ps.m at gmx.net
Thu May 4 13:45:35 UTC 2006
On Thu, 4 May 2006, Bernhard Fischer wrote:
> On Thu, May 04, 2006 at 02:57:23PM +0200, Peter S. Mazinger wrote:
> >On Thu, 4 May 2006, Bernhard Fischer wrote:
> >
> >> On Thu, May 04, 2006 at 10:28:31AM +0200, Peter S. Mazinger wrote:
> >> >On Thu, 4 May 2006, Mike Frysinger wrote:
> >> >
> >> >> On Tuesday 02 May 2006 15:19, Peter S. Mazinger wrote:
> >> >> > when I see this happening, often it is due to make < 3.80 being used
> >> >>
> >> >> i keep meaning to add a sanity check to buildroot ...
> >> >> -mike
> >> >
> >> >Erik did it, I wonder if this could be somehow implemented using some make
> >> >feature, to have it in uClibc as well?
> >>
> >> ifneq ($(findstring 3.79,$(MAKE_VERSION)),)
> >> $(error Your make is too old $(MAKE_VERSION). Go get a working one.)
> >> endif
> >
> >Does anyone know of some distro that uses make older than 3.79? The check
> >could be 3.7.
>
> To be really safe, you should get MAKE_VERSION_MAJOR and
> MAKE_VERSION_MINOR, i'd say..
>
> MAKE_VERSION_MAJOR:=$(shell echo $(MAKE_VERSION) | cut -d'.' -f1)
> MAKE_VERSION_MINOR:=$(shell echo $(MAKE_VERSION) | cut -d'.' -f2)
> $(warning maj='$(MAKE_VERSION_MAJOR)' min='$(MAKE_VERSION_MINOR)')
>
> then see if maj>3 || (maj>=3 && min >= 80) else bail
>
> cheers,
> Bernhard
>
>
do you know how the MAKE_VERSION looks like for
experimental/non-release 3.81?
thanks, Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list