mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
NEWS: Mention testing glibc build with a different set of compilers
Also document C and C++ compilers used to test glibc should come from the same set of compilers. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
d0b8aa6de4
commit
0c36c983ec
3 changed files with 17 additions and 7 deletions
6
INSTALL
6
INSTALL
|
@ -49,9 +49,9 @@ if 'CFLAGS' is specified it must enable optimization. For example:
|
||||||
|
|
||||||
$ ../glibc-VERSION/configure CC="gcc -m32" CFLAGS="-O3"
|
$ ../glibc-VERSION/configure CC="gcc -m32" CFLAGS="-O3"
|
||||||
|
|
||||||
To test the GNU C Library with a different C compiler or a different
|
To test the GNU C Library with a different set of C and C++
|
||||||
C++ compiler, 'TEST_CC=COMPILER' and 'TEST_CXX=COMPILER' arguments can
|
compilers, 'TEST_CC=COMPILER' and 'TEST_CXX=COMPILER' arguments can be
|
||||||
be passed to 'configure'. For example:
|
passed to 'configure'. For example:
|
||||||
|
|
||||||
$ ../glibc-VERSION/configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"
|
$ ../glibc-VERSION/configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"
|
||||||
|
|
||||||
|
|
11
NEWS
11
NEWS
|
@ -9,6 +9,17 @@ Version 2.41
|
||||||
|
|
||||||
Major new features:
|
Major new features:
|
||||||
|
|
||||||
|
* Support testing glibc build with a different set of C and C++ compilers
|
||||||
|
from the C and C++ compilers used to build glibc with
|
||||||
|
|
||||||
|
$ ../configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"
|
||||||
|
|
||||||
|
And support testing glibc build with Clang
|
||||||
|
|
||||||
|
$ ../configure TEST_CC="clang" TEST_CXX="clang++"
|
||||||
|
|
||||||
|
Some run-time failures with Clang are expected.
|
||||||
|
|
||||||
* In /etc/resolv.conf and the RES_OPTIONS, option flags can now be
|
* In /etc/resolv.conf and the RES_OPTIONS, option flags can now be
|
||||||
prefixed with “-” to clear previously set flags. For example, if
|
prefixed with “-” to clear previously set flags. For example, if
|
||||||
/etc/resolv.conf contains “options no-aaaa”, a process running with
|
/etc/resolv.conf contains “options no-aaaa”, a process running with
|
||||||
|
|
|
@ -75,10 +75,9 @@ and @theglibc{} cannot be compiled without optimization, so if
|
||||||
$ ../glibc-@var{version}/configure CC="gcc -m32" CFLAGS="-O3"
|
$ ../glibc-@var{version}/configure CC="gcc -m32" CFLAGS="-O3"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
To test @theglibc{} with a different C compiler or a different C++
|
To test @theglibc{} with a different set of C and C++ compilers,
|
||||||
compiler, @samp{TEST_CC=@var{compiler}} and
|
@samp{TEST_CC=@var{compiler}} and @samp{TEST_CXX=@var{compiler}}
|
||||||
@samp{TEST_CXX=@var{compiler}} arguments can be passed to
|
arguments can be passed to @code{configure}. For example:
|
||||||
@code{configure}. For example:
|
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
$ ../glibc-@var{version}/configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"
|
$ ../glibc-@var{version}/configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue