Created attachment 522615 [details] Sync FFLAGS and LDFLAGS in the %cmake macro with redhat-rpm-config The attached patch syncs %cmake's FFLAGS and LDFLAGS with redhat-rpm-config's %configure macro: redhat-rpm-config's %configure adds -I%_fmoddir to FFLAGS and defines %_fmoddir. After this patch, %cmake adds it as well if %_fmoddir is defined. Similarly, redhat-rpm-config defines LDFLAGS via %__global_ldflags; after this patch %cmake defines LDFLAGS as well if %__global_ldflags is defined. More background info: http://lists.fedoraproject.org/pipermail/devel/2011-August/155358.html
Thanks. Applied. One wonders if these shouldn't be encapsulated in some kind of %set_flags macro.