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.

Regards,
Erwin

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
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to