This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: c++ source files in the build...
- From: DJ Delorie <dj at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: schwab at linux-m68k dot org, libc-alpha at sourceware dot org
- Date: Mon, 11 Jul 2016 17:32:44 -0400
- Subject: Re: c++ source files in the build...
- Authentication-results: sourceware.org; auth=none
Florian Weimer <fweimer@redhat.com> writes:
> g++ is currently required to run tests only. Some tests require static
> linking and thus libstdc++-static, and it was decided at the time to set
> CXX only if -static works for C++ programs.
Indeed, I don't have c++ static support:
dj@envy pts/10 ~
$ g++ hello.cc -o hello
dj@envy pts/10 ~
$ g++ hello.cc -o hello -static
/bin/ld: cannot find -lm
/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status