Giter Club home page Giter Club logo

Comments (7)

fingolfin avatar fingolfin commented on August 16, 2024

Yes, that would be really nice to have.

Though I'd argue that having a flint2-config tool in addition to the .pc file would also be helpful (as unfortunately, pkg-config is not available everywhere).

from flint2.

hasufell avatar hasufell commented on August 16, 2024

Also, some distros like debian think it's a good idea to add (or hack) pkgconfig files themselves which can and does lead to cross-distro breakage. If upstream provides one, then this will less likely become a problem.

from flint2.

jscott0 avatar jscott0 commented on August 16, 2024

(as unfortunately, pkg-config is not available everywhere).

@fingolfin This was a reason against pkg-config CUPS used as well, but I wonder where it comes from? They say

It does not require anything but a reasonably well working C compiler and a C library, but can use an installed glib if that is present. (A copy of recent glib2 is shipped together with pkg-config versions since 0.27, and this is sufficient for pkg-config to compile and work properly.)

although a long time ago it was just a shell script, and I wonder if this discussion is from then.

Also, some distros like debian think it's a good idea to add (or hack) pkgconfig files themselves which can and does lead to cross-distro breakage.

@hasufell Debian does this because pkg-config files, or some other mechanism to get the right build flags, is essential to reliable cross-compilation. Build systems like Autotools and Meson use pkg-config to find libraries this way.

I would like a pkg-config file incorporated (GMP recently got one), and although I'm not very familiar with CMake I'll try looking around.

from flint2.

hasufell avatar hasufell commented on August 16, 2024

Great, I've been waiting 6 years for this moment... day and night I have been wondering whether anyone will hear my prayers. So long I've been contemplating how people build this project and hoped to find a brother in arms. Now finally the day has come! Let's pack up, saddle our horses and move out into the night!

from flint2.

dimpase avatar dimpase commented on August 16, 2024

the problem with Flint (and Arb) is that they have home-grown build systems where adding .pc files is more work that with autotools (there is also a cmake config for Flint nowadays, but it's a bit less stable).
In SageMath we bite the bullet and spell out checks in m4, cf. https://github.com/sagemath/sage/blob/develop/build/pkgs/flint/spkg-configure.m4

  • but this could have been much less painful with a .pc file.

from flint2.

albinahlback avatar albinahlback commented on August 16, 2024

Should be completed now.

from flint2.

hasufell avatar hasufell commented on August 16, 2024

That was quick! ๐Ÿ˜„

from flint2.

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.