sys-include/newlib.h
Jeff Johnston
jjohnstn@redhat.com
Mon Dec 12 18:54:00 GMT 2016
----- Original Message -----
> Hi Jeff,
>
> > Is it possible to point to an empty directory to skirt the inhibit_libc
> > check
>
> No, as stdio.h needs to exist there ($target_header_dir gets set to
> --with_headers value)
>
> if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
> test x$with_newlib = xyes ; } &&
> { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h";
> } ; then
> inhibit_libc=true
>
> And creating a dummy stdio.h doesn't work, as that then gets installed in
> sys-include and used.
>
> > and use the target/include headers that you say are on the include path
>
> For a clean build, these only exist after newlib is built and installed
> though. Does that mean GCC needs to be built twice?
>
What you want to do isn't currently supported in a single configure/build. If you can't
override flags for the gcc build, you will have to do more than one build. Otherwise,
if you can override flags, you could try a configure-target-newlib, change into newlib
directory and do a make stmp-targ-include, then add the flags
to the all-gcc make call to point to the newlib target includes.
-- Jeff J.
> Thanks,
> Jon
>
>
More information about the Newlib
mailing list