Jivin Erwin Authried lays it down ... > Hi Mike, > I doubt that it's good to use the libraries from the binutils build dir, > they should be used from the path where they are finally installed.
In Mikes defense, that is how it has been done in the past as we are building elf2flt against the toolchain we were creating. If it's possible to do this using installed versions then it does sound better, and probably much easier to get right :-) Cheers, Davidm > Am Mittwoch, den 20.02.2008, 18:03 -0500 schrieb Mike Frysinger: > > I'm lazy and having to set 4 configure options when I could just set 1 is a > > pain. So --with-binutils-build-dir allows you to set the base tree of the > > compiled binutils directory and will setup reasonable defaults for the flags > > (if they haven't already been set): > > --with-libbfd > > --with-libiberty > > --with-bfd-include-dir > > --with-binutils-include-dir > > > > Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]> > > --- > > configure.in | 13 +++++++++++++ > > 1 files changed, 13 insertions(+), 0 deletions(-) > > > > diff --git a/configure.in b/configure.in > > index d43b500..66ca0fb 100644 > > --- a/configure.in > > +++ b/configure.in > > @@ -31,6 +31,12 @@ AC_ARG_WITH(binutils-ldscript-dir, > > [ ac_binutils_ldscript_dir=NONE ] > > ) > > > > +AC_ARG_WITH(binutils-build-dir, > > + [ --with-binutils-build-dir=<dir> path to compiled binutils tree ], > > + [ ac_binutils_build_dir=$withval ], > > + [ ac_binutils_build_dir=NONE ] > > +) > > + > > AC_ARG_ENABLE(got-check, > > [ --disable-got-check - disable check for GOT (needed on H8) ], > > [ got_check=$enableval ], > > @@ -50,6 +56,13 @@ dnl Checks for programs. > > AC_PROG_CC > > AC_PROG_INSTALL > > > > +if test "$ac_binutils_build_dir" != "NONE"; then > > + test "$ac_libbfd" = "NONE" && > > ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a" > > + test "$ac_libiberty" = "NONE" && > > ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a" > > + test "$ac_bfd_include_dir" = "NONE" && > > ac_bfd_include_dir="$ac_binutils_build_dir/bfd" > > + test "$ac_binutils_include_dir" = "NONE" && > > ac_binutils_include_dir="$ac_binutils_build_dir/include" > > +fi > > + > > dnl Checks for libraries. > > if test "$ac_libiberty" = "NONE"; then > > AC_CHECK_LIB(iberty, objalloc_create) > -- > Dipl.-Ing. Erwin Authried > Softwareentwicklung und Systemdesign > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > -- David McCullough, [EMAIL PROTECTED], Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
