Open lirui-dot opened 2 years ago
You can use environment variables for linking and including, e.g.:
Simple:
export CGO_LDFLAGS="-lsmb2"
Cross-compiling for android:
export CGO_LDFLAGS="-L/opt/android-sdk-linux/ndk-bundle/sysroot/lib -lsmb2" \ export CGO_CFLAGS="-D__ANDROID_API__=21 -I/opt/android-sdk-linux/ndk-bundle/sysroot/include -I/opt/android-sdk-linux/ndk-bundle/sysroot/include/smb2" \
You can use environment variables for linking and including, e.g.:
Simple:
Cross-compiling for android: