szaydel
8/23/2018 - 7:59 PM

OmniOSce bashrc file

Settings file for building cross-compiled binaries for BrickstorOS on OmniOSce.

export SYSROOT=/opt/bsros/proto
#CGO_ENABLED=1
export CGO_CFLAGS="-w -I$SYSROOT/usr/include/sys/fs -I$SYSROOT/usr/include -pthread -O3 -Wno-unused-parameter"
export CGO_LDFLAGS="-L$SYSROOT/lib -L$SYSROOT/usr/lib -L$SYSROOT/usr/lib/fm -L$SYSROOT/usr/lib/scsi"
export CC='/opt/gcc-7/bin/gcc -m64 -Wno-error'
GOBIN=~/go/bin
PATH=$PATH:$GOBIN