Stupid Newbie Question?
rep.nop at aon.at
Thu May 4 13:38:02 UTC 2006
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.)
>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
More information about the uClibc