From e4d8b08c9162b2a4fcdaa186d66073ecf19256ef Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Mon, 31 Jan 2022 17:40:57 -0500 Subject: Make flags library header-only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Abseil flags library needs to emit code only when being compiled with MSVC, which Debian doesn’t use. Skip absl/flags/flag.cc, and tell CMake to treat the flags library as header-only. --- debian/patches/empty-flags-library.diff | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 debian/patches/empty-flags-library.diff (limited to 'debian/patches/empty-flags-library.diff') diff --git a/debian/patches/empty-flags-library.diff b/debian/patches/empty-flags-library.diff new file mode 100644 index 00000000..fe1d3962 --- /dev/null +++ b/debian/patches/empty-flags-library.diff @@ -0,0 +1,19 @@ +From: Benjamin Barenblat +Subject: Eliminate libabsl_flags.so and libabsl_flags.a +Forwarded: not-needed + +The libabsl_flags library only contains code when compiling with MSVC, which +Debian doesn't use. Skip compiling absl/flags/flag.cc, and make the Abseil flags +library header-only. + +--- a/absl/flags/CMakeLists.txt ++++ b/absl/flags/CMakeLists.txt +@@ -197,8 +197,6 @@ + absl_cc_library( + NAME + flags +- SRCS +- "flag.cc" + HDRS + "declare.h" + "flag.h" -- cgit v1.2.3