Steward
分享是一種喜悅、更是一種幸福
掌機 - Pandora(Rebirth) - SuperZaxxon - 解決Link tests are not allowed after GCC_NO_EXECUTABLES問題
問題如下:
checking whether the gcc-6.5.0/host-armv7l-unknown-linux-gnueabi/gcc/xgcc -Bgcc-6.5.0/host-armv7l-unknown-linux-gnueabi/gcc/ -B/opt/gcc-6.5.0/armv7l-unknown-linux-gnueabi/bin/ -B/opt/gcc-6.5.0/armv7l-unknown-linux-gnueabi/lib/ -isystem /opt/gcc-6.5.0/armv7l-unknown-linux-gnueabi/include -isystem /opt/gcc-6.5.0/armv7l-unknown-linux-gnueabi/sys-include linker (gcc-6.5.0/host-armv7l-unknown-linux-gnueabi/gcc/collect-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `gcc-6.5.0'
解法如下:
$ vim libstdc++-v3/configure +2903
LDFLAGS='/usr/lib/libc_nonshared.a'