RPM Package build options

From TYO Lab Wiki
Jump to: navigation, search

To find out what build CFLAGS options were used to compile the code in your package?

Command Line =[edit]

rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" program

For example, gcc

rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" gcc
gcc: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables