Code Monkey home page Code Monkey logo

Comments (7)

rofl0r avatar rofl0r commented on May 20, 2024

seems the primary bug is that "-c" gets removed from the CFLAGS when the user passes his own set...

from john.

magnumripper avatar magnumripper commented on May 20, 2024

We have a JOHN_CFLAGS that you can use to add stuff without dropping our usual CFLAGS.

from john.

rofl0r avatar rofl0r commented on May 20, 2024

yes, however this is unexpected behaviour.
the polite way would be to just accept the user-passed cflags without breaking
kinda like:

STANDARD_CFLAGS= -c -fomit-frame-pointer ...
ALL_CFLAGS = $(STANDARD_CFLAGS) $(CFLAGS) $(JOHN_CFLAGS)
...
target-xxx:
          $(CC) $(ALL_CFLAGS) $@

edit: reversed cflags order so that user supplied flags come last to override opt levels

from john.

magnumripper avatar magnumripper commented on May 20, 2024

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).

from john.

rofl0r avatar rofl0r commented on May 20, 2024

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

target-xxx:
        $(CC) -c $@ $(CFLAGS)

from john.

magnumripper avatar magnumripper commented on May 20, 2024

Agreed. We should do that to the bleeding branch. But ideally Solar should do it in core first (or too).

from john.

magnumripper avatar magnumripper commented on May 20, 2024

This was fixed once we started using AC.

from john.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.