How could I build a static compilation version?
Exspectate opened this issue · comments
Thank you for your wonderful work. Now I need a static compilation version of uFTP, and I did these:
-
I add -static option in line 49 of Makefile
-
I disabled [ENABLE_OPENSSL_SUPPORT] in line 25,26 of Makefile
-
make, and then get a new uFTP program
but when I execute this, I got this output:
[
Hello uFTP server v2.2.0 RC1 starting..
Reading configuration from
-> /etc/uftpd.cfg
Segmentation fault
]
Could you help me with this? Thanks.
Hello. I'm not uFTP maintainer; however, possibly your problem is not so difficult. First, please provide some info about your environment: processor architecture and bitness, compiler version, C library (this can be either glibc, uclibc or musl), Linux version.
you can use musl, https://musl.libc.org I have never tried but it should work
I will add the makefile commented commands for this since I think is an interesting option