[PATCH] Add an extra flag to libcxxabi buildit to link compiler runtime libraries

Jonathan Roelofs jonathan at codesourcery.com
Thu Aug 21 15:50:15 PDT 2014



On 7/27/14, 7:44 PM, Keno Fischer wrote:
> Some compiler generate calls into their custom runtime libraries, but don't actually link them when -nodefaultlibs is specified, so it would be nice to have this simple extra flag to allow you to specify that.
>
> I hope cfe-commits is the right list for this. I didn't see a separate one for libcxxabi, so please point me there if there is one.
Yes, this is the correct list :)

LGTM, although I'd suggest taking a look at CMake... Dan Albert has recently put 
a bunch of effort into making that path work well.


Cheers,

Jon
>
> http://reviews.llvm.org/D4688
>
> Files:
>    lib/buildit
>
> Index: lib/buildit
> ===================================================================
> --- lib/buildit
> +++ lib/buildit
> @@ -91,7 +91,7 @@
>     done
>     ;;
>   esac
> -$CC *.o $RC_CFLAGS $LDSHARED_FLAGS $EXTRA_FLAGS
> +$CC *.o $RC_CFLAGS $LDSHARED_FLAGS $EXTRA_FLAGS $EXTRA_LIBS
>
>   if [ -z $RC_XBS ]
>   then
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-commits mailing list