I like to create static binaries for use on embedded linux system 
(routers), but I can't figure how to get msmtp to compile statically.  I 
mean completely static binary, no external dependencies on libc etc.
Generally while compiling either natively on the router or 
cross-compiling on x64,  I throw in
LDFLAGS="-Wl,-static -static -static-libgcc"
and for most things this takes care of it.

It seems it's openssl complaining about libdl.
If I then run
make LDFLAGS="-ldl"
it will compile successfully, but it is not static.
Any help or suggestions?

thanks,
Lance




------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
msmtp-users mailing list
msmtp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msmtp-users

Reply via email to