From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 29 Mar 2026 07:47:36 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6izo-006LAa-2E for lore@lore.pengutronix.de; Sun, 29 Mar 2026 07:47:36 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1w6izo-0006cA-9t; Sun, 29 Mar 2026 07:47:36 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1w6izP-0004td-Dc; Sun, 29 Mar 2026 07:47:11 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6izP-002fGA-0W; Sun, 29 Mar 2026 07:47:11 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1w6izP-0000000AWVV-0O0g; Sun, 29 Mar 2026 07:47:11 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Sun, 29 Mar 2026 07:47:11 +0200 Message-ID: <20260329054711.2508181-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260324062821.82844-2-lapeddk@gmail.com> References: <20260324062821.82844-2-lapeddk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] abseil-cpp: Add option to build as shared library X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Lars Alex Pedersen Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as e9bb1606dd748c9929099d82257a095481d498d9. Michael [sent from post-receive hook] On Sun, 29 Mar 2026 07:47:10 +0200, Lars Alex Pedersen wrote: > Signed-off-by: Lars Alex Pedersen > Message-Id: <20260324062821.82844-2-lapeddk@gmail.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/abseil-cpp.in b/rules/abseil-cpp.in > index 00fe201ecee4..47e199289426 100644 > --- a/rules/abseil-cpp.in > +++ b/rules/abseil-cpp.in > @@ -8,3 +8,11 @@ config ABSEIL_CPP > help > Abseil is an open-source collection of C++ library code designed > to augment the C++ standard library. > + > +if ABSEIL_CPP > + > +config ABSEIL_CPP_SHARED_LIB > + bool > + prompt "Build as shared library" > + > +endif > diff --git a/rules/abseil-cpp.make b/rules/abseil-cpp.make > index c668e91faa34..16aab371cb02 100644 > --- a/rules/abseil-cpp.make > +++ b/rules/abseil-cpp.make > @@ -36,7 +36,8 @@ ABSEIL_CPP_CONF_TOOL := cmake > ABSEIL_CPP_CONF_OPT := \ > $(CROSS_CMAKE_USR) \ > -G Ninja \ > - -DABSL_BUILD_MONOLITHIC_SHARED_LIBS=OFF \ > + -DABSL_BUILD_MONOLITHIC_SHARED_LIBS=$(call ptx/ifdef, ABSEIL_CPP_SHARED_LIB, OFF, ON) \ > + -DBUILD_SHARED_LIBS=$(call ptx/ifdef, ABSEIL_CPP_SHARED_LIB, OFF, ON) \ > -DABSL_BUILD_TESTING=OFF \ > -DABSL_BUILD_TEST_HELPERS=OFF \ > -DABSL_ENABLE_INSTALL=ON \ > @@ -47,4 +48,22 @@ ABSEIL_CPP_CONF_OPT := \ > ABSEIL_CPP_CXXFLAGS := \ > -fPIC > > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/abseil-cpp.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, abseil-cpp) > + @$(call install_fixup, abseil-cpp, PRIORITY, optional) > + @$(call install_fixup, abseil-cpp, SECTION, base) > + @$(call install_fixup, abseil-cpp, AUTHOR, "Lars Pedersen ") > + @$(call install_fixup, abseil-cpp, DESCRIPTION, missing) > +ifdef PTXCONF_ABSEIL_CPP_SHARED_LIB > + @$(call install_lib, abseil-cpp, 0, 0, 0644, libabseil_dll) > +endif > + @$(call install_finish, abseil-cpp) > + @$(call touch) > + > # vim: syntax=make