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]

Re: egcs-19980628 libstdc++/Makefile.in problem


| Are there any reported cases of this fragment from the
| libstdc++/Makefile.in being incorrectly generated in the Makefile?
| 
| Around line 277 of libstdc++/Makefile:
| 
|        if [ x$(libsubdir) = x ] || [
| x$(enable_version_specific_runtime_libs) != xyes ]; then \
|           INSTALLDIR=$(libdir); \
|         else \
|           INSTALLDIR=$(libsubdir); \
| 
| the INSTALLDIR= lines are being put in the generated Makefile as:
| 
|     INSTALLDIR= XXX
| 
| with no trailing semi-colon or line continuation character.
| 
| I am targetting powerpc-rtems (based on powerpc-unknown-eabi) doing a one
| tree style build with binutils 2.9.1 and newlib 1.8.0 on Redhat Linux 5.0.
| 
| Hints or patches appreciated. :)

I found the bug in configure.in:

# If cross-compiling, we install in $(tooldir).
if [ -n "${with_cross_host}" ] ; then
    rm -f Makefile.tem
    sed \
        -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
        Makefile >Makefile.tem
    mv -f Makefile.tem Makefile
fi

This should be changed to:

    sed \
        -e 's|^INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \

Note the added '^'

-- 
 Carlo Wood  <carlo@runaway.xs4all.nl>


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