Giter Club home page Giter Club logo

Comments (6)

danielrh avatar danielrh commented on August 29, 2024

Yes: I've done so before--
the CMakeLists should do so by default

otherwise I believe you can pass
LD_FLAGS=-static ./configure

from lepton.

pstibrany avatar pstibrany commented on August 29, 2024

Using cmake as described in README has indeed produced static binary. Thanks!
Maybe it would be worth mentioning in README? :)

from lepton.

pstibrany avatar pstibrany commented on August 29, 2024

It turns out that lepton compiled with cmake+make is much slower at compression (0.34 MiB/sec on my Linux machine) than lepton compiled with autogen.sh + configure + make (2.75 MiB/sec, same machine, same input).

Any idea why what may be the case?
Thanks.

from lepton.

pstibrany avatar pstibrany commented on August 29, 2024

LDFLAGS=-static ./configure && make also produces statically linked lepton, which is as fast as dynamically linked one produced by configure and make. Still I think it would be good to fix slowness of lepton when using cmake, so that others don't run into it.

from lepton.

danielrh avatar danielrh commented on August 29, 2024

sorry for the late response
with cmake you need to specifically tell it to build in RELEASE mode without debug flags
cmake .. -DCMAKE_BUILD_TYPE=Release
otherwise it will build with a ton of self check features enabled. Not a great default to have, I suppose

from lepton.

pstibrany avatar pstibrany commented on August 29, 2024

Ah, ok. I have never used cmake before, and living mostly in Java and Go worlds, I have long forgotten about concept of release builds :-) Thanks for help.

from lepton.

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.