From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 26 Aug 2020 23:30:30 +0200 Subject: [Buildroot] [PATCH 1/2] package/re2: new package In-Reply-To: <20200813144549.1262366-2-buildroot@heine.tech> References: <20200813144549.1262366-1-buildroot@heine.tech> <20200813144549.1262366-2-buildroot@heine.tech> Message-ID: <20200826233030.16bd2230@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Thu, 13 Aug 2020 16:45:48 +0200 Michael Nosthoff via buildroot wrote: > RE2 is a fast, safe, thread-friendly alternative to backtracking > regular expression engines like those used in PCRE, Perl, and > Python. It is a C++ library. > > Signed-off-by: Michael Nosthoff > --- > package/Config.in | 1 + > package/re2/Config.in | 12 ++++++++++++ > package/re2/re2.hash | 3 +++ > package/re2/re2.mk | 25 +++++++++++++++++++++++++ > 4 files changed, 41 insertions(+) > create mode 100644 package/re2/Config.in > create mode 100644 package/re2/re2.hash > create mode 100644 package/re2/re2.mk It seems like there is an issue with this package: http://autobuild.buildroot.net/results/a98/a98d3203f68f0f929c544537244e7621e80ce0a1/build-end.log Apparently, only a static version of libre2 gets installed, which is built without -fPIC (makes sense for a static library). But then it gets linked into a shared library, which booms as all the code in a shared library must be compiled with -fPIC. Perhaps the issue is that we're not explicitly passing -DBUILD_SHARED_LIBS=ON to host CMake packages in package/pkg-cmake.mk ? Could you have a look into this ? Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com