-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom CFLAGS lead to missing -c [was: -flto -fwhole-program does not work] #250
Comments
seems the primary bug is that "-c" gets removed from the CFLAGS when the user passes his own set... |
We have a JOHN_CFLAGS that you can use to add stuff without dropping our usual CFLAGS. |
yes, however this is unexpected behaviour.
edit: reversed cflags order so that user supplied flags come last to override opt levels |
I'm fine with that but we need to discuss it on john-dev because I have no idea about the history of the current behaviour. Actually some comments in params.h (iirc) claim that you can use CFLAGS normally (add to it). |
the most proper way to handle this specific case though is when $(CC) is always followed by -c in the makefile target.
|
Agreed. We should do that to the bleeding branch. But ideally Solar should do it in core first (or too). |
This was fixed once we started using AC. |
invoked make as:
The text was updated successfully, but these errors were encountered: