Пытаюсь кросскомпилировать libstdc++ под ARM Пользуюсь кросскомпилятором из Linux From Scratch
#> ./configure --host=arm-unknown-linux-gnu configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... arm-unknown-linux-gnu
...
arm-unknown-linux-gnu-g++ -Winvalid-pch -Wno-deprecated -x c++-header -I/home/armusr/mlib/include/arm-unknown-linux-gnu -I/home/armusr/mlib/include -I/home/armusr/mlib/libsupc++ -I/home/armusr/mlib/libgcc /home/armusr/mlib/include/stdc++.h -O2 -g -o ./bits/stdc++.h.gch/O2g.gch; In file included from /home/armusr/mlib/include/bits/gthr.h:114, from /home/armusr/mlib/include/bits/c++io.h:38, from /home/armusr/mlib/include/iosfwd:46, from /home/armusr/mlib/include/bits/stl_algobase.h:69, from /home/armusr/mlib/include/algorithm:65, from /home/armusr/mlib/include/stdc++.h:51: /home/armusr/mlib/include/bits/gthr-default.h:88: error: weakref 'int __gthrw_pthread_once(pthread_once_t*, void (*)())' must have static linkage /home/armusr/mlib/include/bits/gthr-default.h:89: error: weakref 'void* __gthrw_pthread_getspecific(pthread_key_t)' must have static linkage
...
make: *** [bits/stdc++.h] Error 1
Кто-либо уже имел удовольствие видеть такое? Или может ли кто-нибудь объяснить смысл данной ошибки?
Зарание спасибо, Александр.