Static linking of MC

Pavel Roskin proski at gnu.org
Sat Sep 28 18:36:16 UTC 2002


Hello!

> In order to include MC as a filemanager with mondo (cd
> backup system) I need to have it statically linked. I
> looked at the make file and it is a snakepit. Any
> pointers on where I should put the -static option to
> the linker?

LDFLAGS, quite obviously.  You will see it if you run "./configure --help"

Actually, it's better to specify LDFLAGS at the configure time, so that
the configure script skips the libraries that are not available for static
linking:

./configure LDFLAGS=-static && make

-- 
Regards,
Pavel Roskin




More information about the mc mailing list