Ticket #819 (new enhancement)

Opened 1 year ago

RPM_OPT_FLAGS name ambiguity?

Reported by: jengelh Assigned to: RpmTickets
Priority: minor Milestone:
Component: rpm Version: RPM Development
Keywords: Cc:

Description

It came to my attention that the helper script "aot-compile-rpm" (from the "java-gcj-compat" package) uses $RPM_OPT_FLAGS for compilation using the gcj compiler, effectively taking RPM_OPT_FLAGS as GCJFLAGS. This collides with the common practice in distros of using RPM_OPT_FLAGS exclusively for CFLAGS, since gcj has a different idea of the -D option than gcc/g++, for example.

Is RPM_OPT_FLAGS exclusively for C, and if so, does a spec define it as such? If not, maybe %optflags should be deprecated in favor of, say, separate macros/variables, such as %optcflags, %optgcjflags.