[Click] click crosscompile configure with target specific CXXFLAGS

Eddie Kohler kohler at cs.ucla.edu
Tue Oct 16 12:36:16 EDT 2007


Harald,

Thanks for the comment.  Unfortunately, the problem is harder to fix than 
this; later elements of the build chain also assume that $CXXFLAGS can be 
passed to either $CXX or $BUILD_CXX.  The right thing to do here, I think, is 
to say on the ./configure command line, "CXX='c++ -mtune=xscale'".  Leave 
CXXFLAGS alone.  Let me know if this does not work for you.

Eddie


Harald Schiöberg wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> click configure fails with target specific CXXFLAGS (e.g. -mtune=xscale)
> 
> here is a quick fix:
> 
> - --- a/m4/click.m4     2007-09-18 22:28:36.000000000 +0200
> +++ b/m4/click.m4     2007-10-16 17:24:34.392490297 +0200
> @@ -223,6 +223,8 @@
>  AC_DEFUN([CLICK_CHECK_BUILD_DYNAMIC_LINKING], [
>      saver="CXX='$CXX' CXXCPP='$CXXCPP'
> ac_cv_header_dlfcn_h='$ac_cv_header_dlfcn_h'
> ac_cv_func_dlopen='$ac_cv_func_dlopen'
> ac_cv_lib_dl_dlopen='$ac_cv_lib_dl_dlopen'"
>      CXX="$BUILD_CXX"; CXXCPP="$BUILD_CXX -E"
> +    CXXFLAGS=""
> +    CPPFLAGS=""
>      unset ac_cv_header_dlfcn_h ac_cv_func_dlopen ac_cv_lib_dl_dlopen
>      BUILD_DL_LIBS=
>      AC_CHECK_HEADERS(dlfcn.h, ac_build_have_dlfcn_h=yes,
> ac_build_have_dlfcn_h=no)
> 
> 
> - --
> Harald Schiöberg
> Technische Universität Berlin | T-Laboratories | FG INET
> www: http://www.net.t-labs.tu-berlin.de
> Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHFMqcJgyxs71kcx4RArwnAJ4kSM5OZ/ZCZdafhkUge3bSGlGgrwCg3Myu
> A512N9lumPzpOzGb8O0jgus=
> =Efyg
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click




More information about the click mailing list