This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Makefile warnings on bib


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]