[PATCH] Properly check linker option in LIBC_LINKER_FEATURE [BZ #28738]

Joseph Myers joseph@codesourcery.com
Tue Jan 4 18:37:18 GMT 2022


On Sun, 2 Jan 2022, H.J. Lu via Libc-alpha wrote:

> +    if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp $2 -nostdlib \
> +	-nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
> +	| grep "warning: $1 ignored" > /dev/null 2>&1; then

If you check for specific English language text like that (which may not 
be a good idea, since binutils maintainers may expect to be able to 
rephrase messages without breaking glibc), you need to run the linker (and 
thus the compiler) with LC_ALL=C to avoid getting a translated message.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list