Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 1 | From 8515ceec5ba3e2fcdbc819b5bf10fe742d7c9d5d Mon Sep 17 00:00:00 2001 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Thu, 27 Jun 2019 13:27:18 +0000 |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 4 | Subject: [PATCH] Makefile.am: include descriptor.pb.cc when building |
| 5 | libprotoc.so |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 6 | |
| 7 | * otherwise plugin.pb.o has undefined symbol scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto |
| 8 | and build with gold fails with: |
| 9 | core2-32-oe-linux/protobuf/3.8.0-r0/recipe-sysroot-native/usr/bin/i686-oe-linux/../../libexec/i686-oe-linux/gcc/i686-oe-linux/9.1.0/ld.bfd: ./.libs/libprotoc.so: undefined reference to `descriptor_table_google_2fprotobuf_2fdescriptor_2eproto' |
| 10 | core2-32-oe-linux/protobuf/3.8.0-r0/recipe-sysroot-native/usr/bin/i686-oe-linux/../../libexec/i686-oe-linux/gcc/i686-oe-linux/9.1.0/ld.bfd: ./.libs/libprotoc.so: undefined reference to `scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto' |
| 11 | |
| 12 | Upstream-Status: Pending |
| 13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 14 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 15 | --- |
| 16 | src/Makefile.am | 1 + |
| 17 | 1 file changed, 1 insertion(+) |
| 18 | |
| 19 | diff --git a/src/Makefile.am b/src/Makefile.am |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 20 | index d4f11ce79..96d911746 100644 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 21 | --- a/src/Makefile.am |
| 22 | +++ b/src/Makefile.am |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 23 | @@ -323,6 +323,7 @@ libprotoc_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotoc.map |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 24 | EXTRA_libprotoc_la_DEPENDENCIES = libprotoc.map |
| 25 | endif |
| 26 | libprotoc_la_SOURCES = \ |
| 27 | + google/protobuf/descriptor.pb.cc \ |
| 28 | google/protobuf/compiler/code_generator.cc \ |
| 29 | google/protobuf/compiler/command_line_interface.cc \ |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 30 | google/protobuf/compiler/cpp/cpp_enum.cc \ |