On Mon, 18 Mar 2013, Cristian Rodr?guez wrote:
El 18/03/13 12:38, Richard Biener escribi?:
Yes, the existing rpmlint check. Note that -grecord-gcc-switches is the default starting with GCC 4.8.
Is there any way to make it record the preprocessor defines that were used in the command line?
They are only recorded with -frecord-gcc-switches, not -grecord-gcc-switches. With -grecord-gcc-switches you get <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit) <c> DW_AT_producer : (indirect string, offset: 0x1e): GNU C 4.9.0 20130318 (experimental) -mtune=generic -march=x86-64 -g -frecord-gcc-switches while with -frecord-gcc-switches
readelf -x 4 t.o
Hex dump of section '.GCC.command.line': 0x00000000 2d697072 65666978 202f686f 6d652f61 -iprefix /home/a 0x00000010 6275696c 642f7267 75656e74 6865722f build/rguenther/ 0x00000020 7472756e 6b2d672f 6763632f 2e2e2f6c trunk-g/gcc/../l 0x00000030 69623634 2f676363 2f783836 5f36342d ib64/gcc/x86_64- 0x00000040 756e6b6e 6f776e2d 6c696e75 782d676e unknown-linux-gn 0x00000050 752f342e 382e302f 002d6973 79737465 u/4.8.0/.-isyste 0x00000060 6d202e2f 696e636c 75646500 2d697379 m ./include.-isy 0x00000070 7374656d 202e2f69 6e636c75 64652d66 stem ./include-f 0x00000080 69786564 002d4420 5f464f4f 3d330074 ixed.-D _FOO=3.t 0x00000090 2e63002d 6d74756e 653d6765 6e657269 .c.-mtune=generi 0x000000a0 63002d6d 61726368 3d783836 2d363400 c.-march=x86-64. 0x000000b0 2d67002d 66726563 6f72642d 6763632d -g.-frecord-gcc- 0x000000c0 73776974 63686573 00 switches. I suppose -frecord-gcc-switches output might be easier to replace the existing .comment.SUSE.OPTs section handling in OBS post-processing. Richard. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org