Help: removing `-lregex` when calling linker for custom target

I am trying to backport Blackberry QNX support for 7.0, which uses a (sadly) ancient GCC-5.4 compiler. Some-magically-how the linker is invoked with a -lregex parameter. This lib is not available for me, and some of its parts are actually part of libc. How can I prevent rustc from generating that param? I can't seem to find where its coming from.

This is likely

You will need to make that attribute and the functions provided by libregex conditional on the qnx version.

1 Like

@bjorn you rock, right on the target! Silly me, didn't realize libc would be the first non-rust repo to look at. Fixed in Disable `libregex` for QNX 7.0 by nyurik · Pull Request #3775 · rust-lang/libc · GitHub (pending review & merge)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.