Files
meta-openembedded/meta-oe/recipes-devtools
Martin Jansa a2fac5a0a4 protobuf: fix build with gold
* Makefile.am: include descriptor.pb.cc when building libprotoc.so

* otherwise plugin.pb.o has undefined symbol scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto
  and build with gold fails with:
  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'
  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'

* examples/Makefile: respect CXX,LDFLAGS variables, fix build with gold

* move pkg-config call to separate variable, so that the final version
  of the whole command so it's shown in log.do_compile_ptest_base
* add ../src/google/protobuf/.libs/timestamp.pb.o when linking
  add_person_cpp otherwise it fails to link with gold:
  i686-oe-linux-g++  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=core2-32-oe-linux/protobuf/3.8.0-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
  /tmp/cccjSJQs.o:addressbook.pb.cc:scc_info_Person_addressbook_2eproto: error: undefined reference to 'scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto'
  /tmp/cccjSJQs.o:addressbook.pb.cc:descriptor_table_addressbook_2eproto_deps: error: undefined reference to 'descriptor_table_google_2fprotobuf_2ftimestamp_2eproto'
  collect2: error: ld returned 1 exit status
  Makefile:43: recipe for target 'add_person_cpp' failed

* and the same with list_people_cpp this time with pkg-config already through the variable:
  i686-oe-linux-g++  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=core2-32-oe-linux/protobuf/3.8.0-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -pthread -Icore2-32-oe-linux/protobuf/3.8.0-r0/git/src -Lcore2-32-oe-linux/protobuf/3.8.0-r0/git/src/.libs -Lcore2-32-oe-linux/protobuf/3.8.0-r0/recipe-sysroot/usr/lib -lprotobuf list_people.cc addressbook.pb.cc -o list_people_cpp
  /tmp/ccpaI5Su.o:addressbook.pb.cc:scc_info_Person_addressbook_2eproto: error: undefined reference to 'scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto'
  /tmp/ccpaI5Su.o:addressbook.pb.cc:descriptor_table_addressbook_2eproto_deps: error: undefined reference to 'descriptor_table_google_2fprotobuf_2ftimestamp_2eproto'
  collect2: error: ld returned 1 exit status
  Makefile:49: recipe for target 'list_people_cpp' failed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-10 09:24:32 -07:00
..
2016-04-28 10:38:37 +02:00
2019-02-04 10:11:36 -08:00
2018-05-29 12:56:19 -07:00
2015-06-08 14:15:24 +02:00
2018-10-14 11:14:35 -07:00
2016-12-13 11:19:11 +01:00
2018-12-18 18:44:59 -08:00
2016-05-10 20:18:29 +02:00
2018-06-27 22:17:33 -07:00
2017-09-07 10:57:36 +02:00
2019-01-30 13:34:49 -08:00
2018-05-29 12:56:19 -07:00
2019-05-10 14:10:13 -07:00
2019-01-30 13:34:49 -08:00
2018-08-19 16:09:28 -07:00
2016-01-06 13:25:54 +01:00
2018-11-27 11:05:22 -08:00
2017-07-14 23:44:33 +02:00
2017-01-25 16:00:00 +01:00
2019-03-19 21:00:06 -07:00
2019-02-03 10:46:42 -08:00
2019-02-05 16:43:12 -08:00
2019-04-11 11:30:35 -07:00
2017-03-31 13:25:58 +02:00
2018-06-14 09:01:12 -07:00
2019-03-06 11:32:27 -08:00
2019-07-10 09:24:32 -07:00
2019-03-04 23:09:24 -08:00
2019-05-21 10:45:33 -07:00
2018-07-27 19:26:51 -07:00
2019-07-10 09:24:32 -07:00
2019-06-15 16:45:33 -07:00
2019-07-10 09:24:32 -07:00
2019-04-16 21:07:25 -07:00
2018-07-20 16:07:12 -07:00
2019-03-03 14:00:26 -08:00
2018-10-12 13:08:38 -07:00
2018-09-24 11:49:45 -07:00
2019-02-28 09:42:11 -08:00
2016-12-26 08:24:54 +01:00
2018-10-02 17:17:10 -07:00