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
@mathuin make LDFLAGS+="-v" ?
=> More informations about this toot | More toots from solene@bsd.network
@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
@mathuin @solene You are probably missing -L /usr/local/lib in LDFLAGS.
=> More informations about this toot | More toots from stsp@bsd.network
@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
@mathuin @stsp you did not mention cmake :flan_blush:
=> More informations about this toot | More toots from solene@bsd.network
@mathuin I usually check the ports tree for examples that could work.
=> More informations about this toot | More toots from simondassow@masto.ai This content has been proxied by September (3851b).Proxy Information
text/gemini