mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #250] custom CFLAGS lead to missing -c [was: -flto -fwhole-program does not work] #18
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rofl0r on GitHub (Apr 11, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/250
invoked make as:
@rofl0r commented on GitHub (Apr 11, 2013):
seems the primary bug is that "-c" gets removed from the CFLAGS when the user passes his own set...
@magnumripper commented on GitHub (Apr 11, 2013):
We have a JOHN_CFLAGS that you can use to add stuff without dropping our usual CFLAGS.
@rofl0r commented on GitHub (Apr 11, 2013):
yes, however this is unexpected behaviour.
the polite way would be to just accept the user-passed cflags without breaking
kinda like:
edit: reversed cflags order so that user supplied flags come last to override opt levels
@magnumripper commented on GitHub (Apr 11, 2013):
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).
@rofl0r commented on GitHub (Apr 11, 2013):
the most proper way to handle this specific case though is when $(CC) is always followed by -c in the makefile target.
i.e. not in the CFLAGS
@magnumripper commented on GitHub (Apr 12, 2013):
Agreed. We should do that to the bleeding branch. But ideally Solar should do it in core first (or too).
@magnumripper commented on GitHub (Oct 13, 2014):
This was fixed once we started using AC.