gcc-toolchain-prebuild
Gcc tool chain prebuild set
[TOC]
Cross-Compiler Binaries
1. windows build to arm
gcc 4.5.2 tested on win7 to build to armv7l
2. linux build to arm
gcc 4.5.2 tested on centos 6.5/7 to build to armv7l
3. linaro
4. musl
5. Sourcery
MinGW-w64 for Windows Compiler Binaries
Reference page:
[MinGW-w64 - for 32 and 64 bit Windows Download]
for win64
tested on windows 7 64 to build to windows 64
- x86_64-8.1.0-release-posix-seh-rt_v6-rev0-mingw64.7z
- x86_64-6.4.0-release-posix-seh-rt_v5-rev0-mingw64.7z
for win32
for both win32/win64
Goland Cross Build Settings
-
windows build to armv7l
Environment
:CC=arm-none-linux-gnueabi-gcc;CXX=arm-none-linux-gnueabi-c++;CGO_ENABLED=1;GOOS=linux;GOARCH=arm;GOARM=7
Go tool arguments
:for static library
-buildmode=c-archive -o libXXX.a
for dynamic library
-buildmode=c-shared -o libXXX.so
and let
Use all custom build tags
selected -
windows build to ubuntu 64 bit, etc.
GOOS=linux;GOARCH=amd64
Find System Glibc Version
ls -l /lib/libc.so.*
/lib/libc.so.6
ldd --version
Find Missing Dependency
objdump -x | grep NEEDED