Makefile warnings on bib

Nathanael Nerode neroden@twcny.rr.com
Sat Dec 14 23:43:00 GMT 2002


>The following warnings occur when I do native builds on 
>hppa64-hp-hpux11.11
>and hppa-linux:
>
>Makefile:6546: warning: overriding commands for target 
>`hppa64-hp-hpux11.11/libiberty/Makefile'
>Makefile:1238: warning: ignoring old commands for target 
>`hppa64-hp-hpux11.11/libiberty/Makefile'
>
>This seems to be because
>
>TARGET_CONFIGDIRS =  libiberty libstdc++-v3 libf2c libobjc
>TARGET_SUBDIR = hppa64-hp-hpux11.11
>
>and
>
>BUILD_CONFIGDIRS = libiberty
>BUILD_SUBDIR = hppa64-hp-hpux11.11
>
>The define for BUILD_SUBDIR looks suspicious to me.
>
>Dave

Sorry, these are both correct and it's the warning which is bogus.

I've been thinking about a way to squelch the warning, but it's tricky; 
the trouble is that BUILD_SUBDIR and TARGET_SUBDIR are set to the same value 
if build=target.  

The commands are overridden, but that's just fine; the target rules 
(which come second) are a superset of the build rulss anyway.

Should I put a note about this somewhere (i.e. to say that this is 
perfectly normal?)

This could be squelched straightforwardly if the convention for 
BUILD_SUBDIR was changed, but this is invasive and may in fact be the 
wrong thing to do.  I'm trying to come up with a solution which handles
crossbacks (build=target!=host) cleanly.

--Nathanael



More information about the Gcc mailing list