Hello,
5.16 will not build (actually a testsuite failure) if
LDFLAGS="-Wl,-z,relro -Wl,--as-needed" is set.

------------------------------------
make[4]: Entering directory `/tmp/AUTOGEN/autogen-5.16/autoopts/test'
FAIL: alias.test
[...]
/usr/bin/ld: cannot find relro: No such file or directory
[...]
>rc-> cc_cmd=i486-linux-gnu-gcc -std=gnu99 -I/tmp/AUTOGEN/autogen-5.16 
>-I/tmp/AUTOGEN/autogen-5.16/autoopts -DHAVE_CONFIG_H -g -O2 -fstack-protector 
>--param=ssp-buffer-size=4 -Wformat  -Wall -DTEST_TEST_RC_OPTS 
>-I/tmp/AUTOGEN/autogen-5.16 -I/tmp/AUTOGEN/autogen-5.16/agen5 
>-I/tmp/AUTOGEN/autogen-5.16/autoopts -D_FORTIFY_SOURCE=2 -o rc rc.c 
>/tmp/AUTOGEN/autogen-5.16/autoopts/.libs/libopts_la-libopts.o -Wl,-R 
>-Wl,-z,relro -Wl,--as-needed    -lguile -lltdl -lgmp -lcrypt -lm -lltdl
------------------------------------

The reason for this is the addition of the option -Wl,-R to the command.

AG_LDFLAGS is set to "-Wl,-R" by AG_TEST_LDFLAGS. This is not new,
however autoopts/test/defs.in has changed, it previously overwrote the
value of AG_LDFLAGS as passed by ./configure/automake but uses the
value now.

Afaiui the linker's -R option requires a filename as argument,
therefore having -Wl,-R without argument in the linker line is a bug.

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to