View previous topic :: View next topic |
Author |
Message |
orlanz n00b
Joined: 25 May 2003 Posts: 26
|
Posted: Fri Jul 25, 2003 5:58 pm Post subject: USE FLAGS question: Static |
|
|
I am trying to emerge the new mysql and I am having problems. I have done regdep-rebuild. When I compile, it still breaks with:
Code: |
*** HOME not set. Setting to /var/tmp/portage
>>> Unpacking source...
* MySQL does not support building statically with SSL support
!!! ERROR: dev-db/mysql-4.0.13-r3 failed.
!!! Function src_unpack, Line 52, Exitcode 0
!!! MySQL does not support building statically with SSL support
bash-2.05b#
|
I think I solved the problem by looking at my use flags and seeing ssl and static together. It seems to compile fine when I try -static. Is this right or am I totally off?
Now the question is... should I keep static for my other ebuilds or is it not really worth it? I also don't fully understand what static is, could someone explain it and whether its important or not? From what I understand, its statically links libraries so that programs are speed up during loading, and it doesn't improve speed in running programs . Is this all and is it worth it? I have a 350 Mhz P2 w/ 256 Mb RAM, and I task the machine heavily w/ multiple KDE's and WINE so I put a lot of weight on optimized, fast, low resource code.
Thank you. |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Fri Jul 25, 2003 6:27 pm Post subject: |
|
|
Statically-linked programs don't depend on external libraries and will work even if your libraries are toasted. Good for mission-critical stuff.
However, you'll need to recompile the programs if you upgrade your libc (or other libraries) if a bug is discovered in the library.
This is why you see it used on stuff like the login programs, etc. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9526 Location: beyond the rim
|
Posted: Fri Jul 25, 2003 6:28 pm Post subject: |
|
|
static is not useful in most cases as it creates bigger binaries and speedup is near or equal to zero. The one case where it is useful if your shared libs are broken or incompatible to older versions (in case you upgrade openssl to 0.9.7 for example).
So it's safe to drop it, I would recommend it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|