go build -ldflags '-w -extldflags "-static"' -a
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lformw
/usr/bin/ld: cannot find -lmenuw
/usr/bin/ld: cannot find -lncursesw
/usr/bin/ld: cannot find -lpanelw
collect2: error: ld returned 1 exit status
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
go build -ldflags '-L./libs -w -extldflags "-static"' -a
flag provided but not defined: -L./libs
usage: link [options] main.o
-B note
add an ELF NT_GNU_BUILD_ID note when using ELF
-D address
set data segment address (default -1)
-E entry
set entry symbol name
-H type
set header type
-I linker
...rest omitted for brevityHi thanks,Ah yes, it seems that i forgot that with the static library. Now i've the static library under ./libs folder and i use this command:go build -ldflags '-L./libs -w -extldflags "-static"' -abut now i get this message:flag provided but not defined: -L./libs
usage: link [options] main.o
-B note
add an ELF NT_GNU_BUILD_ID note when using ELF
-D address
set data segment address (default -1)
-E entry
set entry symbol name
-H type
set header type
-I linker
...rest omitted for brevityam i using the command wrong or is there a flag i'm missing?