assimp: fix pthread linking
PATCH 1/1 assimp: fix pthread linking
Fixes [1]:
[100%] Linking CXX executable ../../bin/assimp /home/test/autobuild/run/instance-2/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-uclinux-uclibcgnueabi/5.4.0/../../../../arm-buildroot-uclinux-uclibcgnueabi/lib/libstdc++.a(guard.o): In function `(anonymous namespace)::get_static_cond()':
guard.cc:(.text._ZN12_GLOBAL__N_115get_static_condEv+0x6): undefined reference to `pthread_once'
...
[1] http://autobuild.buildroot.net/results/c10/c10886686a0d29877004a0afe2106a77aa2f2ba0
--- package/assimp/assimp.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/assimp/assimp.mk +4 -0
@@ -18,4 +18,8 @@ endif ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)" +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +ASSIMP_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS="-pthread" +endif + $(eval $(cmake-package))
Signature · 1 line
2.8.1
PATCH 1/1 assimp: fix pthread linking
Quoted 19 lines · Peter Seiderer
Fixes [1]:
[100%] Linking CXX executable ../../bin/assimp /home/test/autobuild/run/instance-2/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-uclinux-uclibcgnueabi/5.4.0/../../../../arm-buildroot-uclinux-uclibcgnueabi/lib/libstdc++.a(guard.o): In function `(anonymous namespace)::get_static_cond()':
guard.cc:(.text._ZN12_GLOBAL__N_115get_static_condEv+0x6): undefined reference to `pthread_once'
...[1] http://autobuild.buildroot.net/results/c10/c10886686a0d29877004a0afe2106a77aa2f2ba0
Signed-off-by Peter Seiderer <[email protected]>--- package/assimp/assimp.mk | 4 ++++ 1 file changed, 4 insertions(+)package/assimp/assimp.mk +0
-0
package/assimp/assimp.mk endif · line 25
Quoted 8 lines
package/assimp/assimp.mk +4
-0@@ -18,4 +18,8 @@ endif ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)" +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +ASSIMP_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS="-pthread" +endif + $(eval $(cmake-package))
Waldemar is sure this is a uClibc-ng failure and will be fixed with update to uClibc-ng 1.0.18 (as stated for similar failure of powertop, see [2]), will defer this patch in patchwork...
Regards,
Peter
PATCH 1/1 assimp: fix pthread linking
Quoted 34 lines · Peter Seiderer
Quoted 19 lines · Peter Seiderer
Fixes [1]:
[100%] Linking CXX executable ../../bin/assimp /home/test/autobuild/run/instance-2/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-uclinux-uclibcgnueabi/5.4.0/../../../../arm-buildroot-uclinux-uclibcgnueabi/lib/libstdc++.a(guard.o): In function `(anonymous namespace)::get_static_cond()':
guard.cc:(.text._ZN12_GLOBAL__N_115get_static_condEv+0x6): undefined reference to `pthread_once'
...[1] http://autobuild.buildroot.net/results/c10/c10886686a0d29877004a0afe2106a77aa2f2ba0
Signed-off-by Peter Seiderer <[email protected]>--- package/assimp/assimp.mk | 4 ++++ 1 file changed, 4 insertions(+)package/assimp/assimp.mk +0
-0package/assimp/assimp.mk endif · line 25
Quoted 8 lines
package/assimp/assimp.mk +4
-0@@ -18,4 +18,8 @@ endif ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)" +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +ASSIMP_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS="-pthread" +endif + $(eval $(cmake-package))Waldemar is sure this is a uClibc-ng failure and will be fixed with update to uClibc-ng 1.0.18 (as stated for similar failure of powertop, see [2]), will defer this patch in patchwork...
Quoted 2 lines
Regards,
Peter
Forgot to add the link, here it is:
[2] http://lists.busybox.net/pipermail/buildroot/2016-September/173086.html
Regards,
Peter
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot