Yi Zhao c697727db7 minifi-cpp: specify GCC_AR and GCC_RANLIB
We encountered a minifi-cpp build error on a self-hosted image:
[snip]
/build/tmp-glibc/work/corei7-64-wrs-linux/minifi-cpp/0.7.0-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-ranlib:
thirdparty/civetweb-1.10/src/libcivetweb-cpp.a(CivetServer.cpp.o): plugin needed to handle lto object
/build/tmp-glibc/work/corei7-64-wrs-linux/minifi-cpp/0.7.0-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-ranlib:
thirdparty/civetweb-1.10/src/libcivetweb.a(civetweb.c.o): plugin needed to handle lto object
[snip]
/build/tmp-glibc/work/corei7-64-wrs-linux/minifi-cpp/0.7.0-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/10.2.0/ld: DWARF error: could not find variable specification at offset c960f
/build/tmp-glibc/work/corei7-64-wrs-linux/minifi-cpp/0.7.0-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/10.2.0/ld: DWARF error: could not find variable specification at offset c961d
[snip]
extensions/civetweb/libminifi-civet-extensions.a(ListenHTTP.cpp.o):
in function `org::apache::nifi::minifi::processors::ListenHTTP::WriteCallback::process(std::shared_ptr<org::apache::nifi::minifi::io::BaseStream>)':
/usr/src/debug/minifi-cpp/0.7.0-r0/git/extensions/civetweb/processors/ListenHTTP.cpp:464: undefined reference to `mg_read'
[snip]

When using GCC's link-time optimization with static linked libraries, we
should use gcc-ar and gcc-ranlib to create the static libraries. By
default, it will search gcc-ar and gcc-ranlib in the system. But if the
gcc-ranlib is not found, it will use ranlib instead which causes this
issue.
Specify GCC_AR and GCC_RANLIB in EXTRA_OECMAKE to make sure it can find
the correct gcc-ar/gcc-ranlib.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-02 09:00:51 -08:00
..
2020-09-16 23:03:29 -07:00
2020-03-15 16:36:28 -07:00
2020-03-30 22:02:13 -07:00
2020-01-10 00:50:59 -08:00
2020-07-04 08:03:58 -07:00
2019-12-19 11:02:29 -08:00
2020-09-10 21:20:23 -07:00
2019-10-25 10:29:51 -07:00
2020-04-21 19:21:55 -07:00
2020-01-22 11:10:25 -08:00
2020-05-21 15:07:44 -07:00
2020-08-27 00:03:51 -07:00
2019-11-20 06:57:07 -08:00
2014-07-22 00:01:50 +02:00
2020-03-08 08:15:34 -07:00
2018-11-27 11:05:22 -08:00
2017-04-06 13:00:29 +02:00
2020-07-28 12:23:16 -07:00
2020-05-31 22:42:25 -07:00
2020-08-13 22:37:48 -07:00
2018-09-25 22:24:15 -07:00
2018-09-08 13:32:12 -07:00
2017-07-24 18:58:51 +02:00
2020-09-10 21:20:23 -07:00
2018-07-04 06:09:58 -07:00
2018-10-05 14:51:14 -07:00
2020-08-17 12:26:41 -07:00
2017-06-14 14:51:17 +02:00
2020-07-28 12:23:16 -07:00
2020-08-31 16:57:06 -07:00
2020-08-21 16:35:25 -07:00
2020-08-17 17:52:09 -07:00
2020-02-21 08:50:36 -08:00
2018-06-20 23:19:13 -07:00
2020-09-03 07:54:13 -07:00
2018-04-13 12:43:39 -07:00
2019-09-16 07:10:03 -07:00
2020-07-31 13:22:53 -07:00
2020-06-13 21:34:21 -07:00