To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=116959
------- Additional comments from [email protected] Tue Feb 15 13:47:03 +0000 2011 ------- one of the requirements for such a variable is that it should be possible to override the optimization settings. iirc g++ -O2 .... -O0 would disable optimization, because later arguments override earlier arguments. one of the ways of implementing this is to initialize CFLAGS etc. not unconditionally with empty string, but conditionally. so if user gives make CFLAGS=-foo it would be used. but because we append everything to CFLAGS the user-defined stuff would be at the front, and the gbuild stuff would override it. another way, like mba has proposed, to add ENV_CFLAGS somewhere in LinkTarget, has a risk of running into the same problem: what if somewhere else something is appended? only way out seems to me to put ENV_CFLAGS directly into compile commands, where we can guarantee that it comes last. regardless of the above, we could also, as sb suggested, rename the existing CFLAGS to gb_CFLAGS or something, and let user specify CFLAGS instead of ENV_CFLAGS. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
