When a user sees a bug or rhetorical appeal such as bug 129413, he is introduced to the concept of placing a variable which affects the build process of a program. It has been standardized, thanks to general use and autoconf, that the LDFLAGS present in make.conf refers to flags that may be passed only to ${CC}. Thus, one sets LDFLAGS="-Wl,--as-needed,-t" instead of LDFLAGS="--as-needed -t". But other flags have much blurrier definitions. Automake claims that CCASFLAGS may be passed to ${CCAS}, where CCAS=${CC} generally. That leaves ASFLAGS to be passed directly to ${AS}. So it may be argued that if one sets ASFLAGS in make.conf, one must _not_ escape them -- the ASFLAGS must be in a form understandable by ${AS}. Then CCASFLAGS must be recognized and defined such that options needing to be passed to ${AS} must be escaped with -Wa like LDFLAGS are escaped with -Wl. If setting LDFLAGS, ASFLAGS, or CCASFLAGS at all is unsupported, I think make.conf.example and the make.conf manpage should document this. If otherwise, documentation on the acceptable forms of variables such as ASFLAGS is needed. If it is legal to set ASFLAGS without -Wa as I discussed above, I have some other bugs to file against misbehaving packages :-). I'm setting this bug to block the portage-multilib tracker because portage-multilib depends on ASFLAGS not requiring -Wa escapes. Whatever judgement is made as a result of this bug will affirm or invalidate portage-multilib's current approach to ASFLAGS.
*** Bug 307517 has been marked as a duplicate of this bug. ***
make.conf is already cluttered with crap most users could care less about. LDFLAGS is about the only variable i might include in there, but ASFLAGS/LFLAGS/YFLAGS/etc... have no business. if you want to document them in some extended document on gentoo.org then that's fine, but make.conf is inappropriate.
Created attachment 228509 [details] portage-make.conf.5-LDFLAGS.patch This attempts to fix documentation just for LDFLAGS.
(In reply to comment #3) > Created an attachment (id=228509) [details] > portage-make.conf.5-LDFLAGS.patch > > This attempts to fix documentation just for LDFLAGS. > Thanks, this is in git now: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1a716a5f949b84cd8a84871ad7caa9d985fe91fc
This is fixed in 2.1.9.