Ancestors

Written by Patrick Marchand on 2025-01-24 at 10:21

I'm trying to figure out how to pass flags to ld(1) through a make(1) invocation on #OpenBSD

ld cant find libraries that are installed and I'd like to pass the -v flag to it.

=> More informations about this toot | More toots from mathuin@bsd.network

Written by Solène :flan_hacker: on 2025-01-24 at 10:45

@mathuin make LDFLAGS+="-v" ?

=> More informations about this toot | More toots from solene@bsd.network

Written by Patrick Marchand on 2025-01-24 at 11:53

@solene hmm, no dice. I'm trying to figure out compilation of an arcan fossil checkout with pdf support, ld complains that it cant find the libraries while they're all installed though pkg_add.

The other dependencies work just fine.

=> More informations about this toot | More toots from mathuin@bsd.network

Toot

Written by Stefan Sperling on 2025-01-24 at 13:23

@mathuin @solene You are probably missing -L /usr/local/lib in LDFLAGS.

=> More informations about this toot | More toots from stsp@bsd.network

Descendants

Written by Patrick Marchand on 2025-01-25 at 10:54

@stsp @solene Thank you for the help, ultimately the answer was in the cmake(1) generation step:

-DCMAKE_EXE_LINKER_FLAGS="-v -L /usr/local/lib"

=> More informations about this toot | More toots from mathuin@bsd.network

Written by Solène :flan_hacker: on 2025-01-25 at 15:24

@mathuin @stsp you did not mention cmake :flan_blush:

=> More informations about this toot | More toots from solene@bsd.network

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113883547647968493
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
281.978868 milliseconds
Gemini-to-HTML Time
1.510699 milliseconds

This content has been proxied by September (3851b).