Skip to content
Snippets Groups Projects
Unverified Commit f41a6c53 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[pkg] remove ldflags

parent 05398d4f
Branches
Tags
No related merge requests found
...@@ -86,7 +86,7 @@ PKGFILES = $(shell find pkg -type f -name '*.go') ...@@ -86,7 +86,7 @@ PKGFILES = $(shell find pkg -type f -name '*.go')
endif endif
lib/%.a: $(PKGFILES) lib/%.a: $(PKGFILES)
@./gui/build.sh --just-golib @XBUILD=no ./gui/build.sh --just-golib
relink_vendor: relink_vendor:
ifeq ($(VENDOR_PATH), providers) ifeq ($(VENDOR_PATH), providers)
......
...@@ -57,14 +57,16 @@ function buildGoLib { ...@@ -57,14 +57,16 @@ function buildGoLib {
CGO_CFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" CGO_CFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET"
CGO_LDFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" CGO_LDFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET"
fi fi
if [ "$PLATFORM" == "MINGW64_NT-10.0" ]
then #if [ "$PLATFORM" == "MINGW64_NT-10.0" ]
LDFLAGS="-H windowsgui" #then
fi # LDFLAGS="-H windowsgui"
#fi
if [ "$XBUILD" == "no" ] if [ "$XBUILD" == "no" ]
then then
echo "[+] Building Go library with standard Go compiler" 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 fi
if [ "$XBUILD" == "$WIN64" ] if [ "$XBUILD" == "$WIN64" ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment