package/pistache: fix static build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 17 Oct 2020 13:54:49 +0000 (15:54 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 18 Oct 2020 07:52:42 +0000 (09:52 +0200)
commit30e7f999af3aab9b0299836449cbfa9d3212daae
treeecfe6ba3083a3681ef5414a4a346b6d4d128e134
parentad933f9119340f0d11415b9bc3433d0de3681aa2
package/pistache: fix static build

Don't build shared library with BR2_SHARED_LIBS=OFF to avoid the
following build failure:

[100%] Linking CXX shared library libpistache.so
make[3]: Leaving directory `/home/buildroot/autobuild/run/instance-1/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d'
[100%] Built target pistache_static
/home/buildroot/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/8.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: /home/buildroot/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/8.3.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object

Fixes:
 - http://autobuild.buildroot.org/results/6cc/6cc76b3e76defa9b8154568a6ebcd6bf4cadd334/build-end.log

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: update upstream status now they merged it]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/pistache/0002-CMakeLists.txt-respect-BUILD_SHARED_LIBS.patch [new file with mode: 0644]