static monolithic build, is wiki outdated? Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
mobilevil
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Mar 18, 2019 6:17 am

static monolithic build, is wiki outdated?

Post by mobilevil »

Hello,
in the wiki
https://wiki.wxwidgets.org/WxWidgets_Bu ... igurations
it say
--enable-monolithic MONOLITHIC=1 Packages all libraries in a single file. (Note: do not combine this option with a static build.)

seems it is outdated? I was able to build and use monolithic static lib under Windows with TDM-GCC.
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: static monolithic build, is wiki outdated?

Post by doublemax »

I think there are some platform/compiler combinations where this causes problems. But if it works for you, it's fine.
Use the source, Luke!
mobilevil
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Mar 18, 2019 6:17 am

Re: static monolithic build, is wiki outdated?

Post by mobilevil »

Thanks.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: static monolithic build, is wiki outdated?

Post by ONEEYEMAN »

Hi,
In general 'MONOLITHIC' build is not recommended as it does not give you any gains over the 'MULTILIB' settings.
In fact it could produce some linking issues.

But if it works for you - good.
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: static monolithic build, is wiki outdated?

Post by doublemax »

The advantage is that you only have one lib and you don't have to bother which ones you need and which not.
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: static monolithic build, is wiki outdated?

Post by ONEEYEMAN »

doublemax,
I guess in 2019 the linkers are smart enough to link only the functions your program is interested in...

So maybe it does make sense.

Thank you.
Post Reply