diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-23 18:36:00 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-23 23:24:50 +0200 |
commit | f41a6c531f35a8e3bd3f02ea74f1d7dfd93f4e8b (patch) | |
tree | c5fcf46f4f427f09a1e61aa57e67df611188ab92 /gui/build.sh | |
parent | 05398d4f961406f888c325504610430267bfdb47 (diff) |
[pkg] remove ldflags
Diffstat (limited to 'gui/build.sh')
-rwxr-xr-x | gui/build.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gui/build.sh b/gui/build.sh index 2262d09..17f76d4 100755 --- a/gui/build.sh +++ b/gui/build.sh @@ -53,18 +53,20 @@ function buildGoLib { if [ "$PLATFORM" == "Darwin" ] then GOOS=darwin - CC=clang - CGO_CFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" - CGO_LDFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" - fi - if [ "$PLATFORM" == "MINGW64_NT-10.0" ] - then - LDFLAGS="-H windowsgui" + CC=clang + CGO_CFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" + CGO_LDFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" fi + + #if [ "$PLATFORM" == "MINGW64_NT-10.0" ] + #then + # LDFLAGS="-H windowsgui" + #fi + if [ "$XBUILD" == "no" ] then echo "[+] Building Go library with standard Go compiler" - CGO_ENABLED=1 GOOS=$GOOS CC=$CC CGO_CFLAGS=$CGO_CFLAGS CGO_LDFLAGS=$CGO_LDFLAGS go build -ldflags $LDFLAGS -buildmode=c-archive -o $TARGET_GOLIB $SOURCE_GOLIB + CGO_ENABLED=1 GOOS=$GOOS CC=$CC CGO_CFLAGS=$CGO_CFLAGS CGO_LDFLAGS=$CGO_LDFLAGS go build -buildmode=c-archive -o $TARGET_GOLIB $SOURCE_GOLIB fi if [ "$XBUILD" == "$WIN64" ] then |