Closed Karrthik-Arya closed 11 months ago
_I believe set(PKG_CONFIGARGN --libs-only-l) was added to avoid the following issue while building on linux
That's right, and related details, which I have forgotten myself already, luckily have been recorded here: https://github.com/facebook/react-native/issues/38111
but is not working as intended
Well... so far it worked for me on Ubuntu, and I have both CMake 3.18.1 and 3.22.1 installed as a part of Android SDK, not sure right away which one is actually picked up by RN builds on my machine.
So... yeah... I see in your log it seems to still attempt PCRE2 linking as -L/usr/lib -lpcre2-8
, rather than just -lpcre2-8
, as --libs-only-l
flag should force it... not sure why it happens. Most probably, you are using an older CMake, which does not support the flag?
@Karrthik-Arya yeah... I checked, PKG_CONFIG_ARGN is supported by CMake since v3.22, most probably you are building it with an older CMake, thus it does not work for you. Thus, to overcome the problem, try to upgrade CMake.
I guess, I'll later update the build config to require CMake 3.22 as the minimum supported version (it has been released on Nov 18, 2021 — a while ago, thus I guess it is fair to request it as the minimum version, rather than look for an alternative way to workaround the problem).
Actually I am using cmake 3.22.1 itself, i am manjaro rn can that be a cause of this issue
Hmm... no idea then, I guess you'll have to troubleshoot it yourself.
Heads up — CMake v3.22.1 will be declared as the minimum supported version in the next v0.8.4 release of the library; and then I'll close this ticket. Sure, feel free to further re-open it (or create a new one), if you confirm the same issue is still there with the new version of the library.
I believe
set(PKG_CONFIG_ARGN --libs-only-l)
was added to avoid the following issue whill building on linux but is not working as intended