c++ - Compile libgdiplus source to create statically linked library i.e. libgdiplus.so -


i have downloaded libgdiplus source https://github.com/mono/libgdiplus/archive/master.tar.gz

how should compile create statically linked library? reason behind dont want user install dependencies libgdiplus.so require run program.

i tried ./configure --enable-static , ./configure ldflags=-static , checked output in /src/.libs directory did not find statically linked shared object library there. want distribute program uses embedded mono.net.

thanks, omkay

general :

./configure --enable-static --prefix=/usr mkdir somedir install_root=somedir make install 

should make things simpler searching.

please beware in order no-dependencies archive, you’ll need have dependencies of libgdiplus availaible static archives. if of them installed shared objects, programs linked against on libgdiplus.a require .so dependencies @ run-time.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -