mate-desktop / marco

MATE default window manager
https://mate-desktop.org
GNU General Public License v2.0
192 stars 85 forks source link

Ho do I statically compile the `marco` binary? #736

Closed 64kramsystem closed 1 year ago

64kramsystem commented 1 year ago

(if this is not the appropriate place, please redirect me!)

How do I statically compile the marco binary? When I compile it, I get a small binary (tens of KB), that is statically linked to the marco private libraries. I'd like to obtain something like the MATE binary, which is not linked to the private libraries (and it's indeed considerably bigger, hundreds of KB).

I've tried to find out the flags and tested a few, but when I try the closest setting I can think of:

./autogen.sh --enable-shared=no --enable-static=yes

I get an error, during build, about duplicated main function.

Thanks!

64kramsystem commented 1 year ago

Ok. Took me a while to figure out - it was older versions that had fatter marco binaries (I was using, as reference, an official older Ubuntu package).