• Static_Rocket@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    Unfortunately there’s nothing enforcing good standards that allow most projects to be cross-compiled. Always some weird lib lookup that bypasses a sysroot definition or some compiler check that hits the host arch instead of the target.

    • jj4211@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Note that you can wrap whatever build system you want in a simple makefile.

      I tend to provide a makefile because I get tired of other projects having who knows what entry point, so I like providing a courtesy Makefile to get someone going.

      • Static_Rocket@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Oh yeah, I’ve (ab)used makefiles for so many things. Oddly enough I think they are great for most tasks, excluding C compilation now. I implemented a download manager in makefiles once. It’s great for hacking, but any serious project I make is going to be meson based. It’s also got issues (pkg-config vs pkgconf), but it’s at least somewhat standardized.

    • budget_biochemist@aussie.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Make is a useful tool because you can rely on some flavour of it being present in most systems. Like being able to use vi, or shell scripts.

      • TheNamlessGuy@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        “some flavor” is pretty much exactly what’s not good about it.

        GMake is the only make worth using, IMO - for build systems. For script handling, just reigns supreme.

    • sakphul@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Just (no pun intended) a small question: Why should one choose it over something like make, ninja? How good is it integrated into build systems like meson or CMake?

      • giomf@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        It isnt at all, but I really like it as runner to not remember commands in some repos.

  • toothbrush@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    1 day ago

    This is really badly written, I had to re-read parts multiple times because they were nearly incomprehensible.

    Dear author: Please proofread your blogpost next time!