simonkrauter/NiGui

Building a static binary

thisago opened this issue · 2 comments

Hello! I tried to compile with --passL:-static, but on execution gives the error:

/usr/bin/ld: /home/user/.cache/nim/secureDownloader_r/stdlib_system.nim.c.o: in function `nimLoadLibrary':
stdlib_system.nim.c:(.text+0xc3b1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /home/user/.cache/nim/secureDownloader_r/stdlib_nativesockets.nim.c.o: in function `getAddrInfo_pureZnativesockets_187':
stdlib_nativesockets.nim.c:(.text+0x14a): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

How I can share a static bin in Windows? I need to link something?
In Linux I can use Musl, but in Windows I didn't find anything

As far as I know, the executable should run on Windows/Linux without any further effort.
The WinApi resp. Gtk libraries are used via dlopen on runtime by the standard mechanism of Nim.
So what problem are you trying to solve?

after searching I realized that the problem is SSL... Isn't a problem with your lib, sorry