Closed sparked435 closed 7 years ago
Thanks for the report.
Turns out I had been spelling it LIBFLAGS
in luke, for consistency with CFLAGS
and LDFLAGS
, but using Luarocks' spelling LIBFLAG
in the rockspec file. I fixed luke upstream, and imported the latest version, which now works for me!
On NetBSD, a special linker flag needs to be passed for ld.so to correctly load dependencies in nonstandard places - which unfortunately includes /usr/pkg/lib.
It's pretty routine to override LDFLAGS or similar when building with LuaRocks for that reason. However, this package fails:
You can see in the above that LIBFLAG gets passed down somewhat, but doesn't make it all the way to the CC command (the option '-Wl,-R/usr/pkg/lib' is missing), and thus loading yaml.so fails.