tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: --sysroot support



> Index: gnu/dist/gcc4/gcc/Makefile.in
> ===================================================================
> RCS file: /home/joerg/repo/netbsd/src/gnu/dist/gcc4/gcc/Makefile.in,v
> retrieving revision 1.8
> diff -u -p -r1.8 Makefile.in
> --- gnu/dist/gcc4/gcc/Makefile.in     12 Aug 2008 10:09:31 -0000      1.8
> +++ gnu/dist/gcc4/gcc/Makefile.in     21 Mar 2011 07:26:56 -0000
> @@ -3138,19 +3138,7 @@ stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) 
>  # Using basename would be simpler, but some systems don't have it.
>  # The touch command is here to workaround an AIX/Linux NFS bug.
>       -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; 
> fi
> -     for file in .. $(USER_H); do \
> -       if [ X$$file != X.. ]; then \
> -         realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
> -         $(STAMP) include/$$realfile; \
> -         rm -f include/$$realfile; \
> -         cp $$file include; \
> -         chmod a+r include/$$realfile; \
> -       fi; \
> -     done
> -     rm -f include/limits.h
> -     cp xlimits.h include/limits.h
>       cp $(UNWIND_H) include/unwind.h
> -     chmod a+r include/limits.h
>  # Install the README
>       rm -f include/README
>       cp $(srcdir)/../fixincludes/README-fixinc include/README

please do this change by not deleting all these lines, but adding
a "if false; then ... fi" pair around the code.

the rest seems OK, but i didn't look very closely.  i keep meaning
to look more at --sysroot and using it for netbsd, but i never did.


.mrg.


Home | Main Index | Thread Index | Old Index