Subject: qt4 library size: much much bigger on amd64 than i386
To: None <tech-toolchain@NetBSD.org>
From: Thomas Klausner <wiz@netbsd.org>
List: tech-toolchain
Date: 12/26/2007 10:47:55
Hi!
When I build qt4-libs on 4.99.42/amd64, I get huge static libraries:
-rw-r--r-- 1 root wheel 67479820 Dec 22 02:38 qt4/lib/libQt3Support.a
-rw-r--r-- 1 root wheel 36105504 Dec 22 02:39 qt4/lib/libQtCore.a
-rw-r--r-- 1 root wheel 212102348 Dec 22 02:40 qt4/lib/libQtGui.a
-rw-r--r-- 1 root wheel 13491010 Dec 22 02:40 qt4/lib/libQtNetwork.a
-rw-r--r-- 1 root wheel 6870402 Dec 22 02:40 qt4/lib/libQtOpenGL.a
-rw-r--r-- 1 root wheel 34697696 Dec 22 02:40 qt4/lib/libQtScript.a
-rw-r--r-- 1 root wheel 6442046 Dec 22 02:40 qt4/lib/libQtSql.a
-rw-r--r-- 1 root wheel 9383216 Dec 22 02:40 qt4/lib/libQtSvg.a
-rw-r--r-- 1 root wheel 4607340 Dec 22 02:40 qt4/lib/libQtXml.a
I.e. the QtGui one is over 200MB big.
For comparison, the dynamic ones are:
-r-xr-xr-x 1 root wheel 24944932 Dec 22 02:38 qt4/lib/libQt3Support.so.4.3.3
-r-xr-xr-x 1 root wheel 13554113 Dec 22 02:38 qt4/lib/libQtCore.so.4.3.3
-r-xr-xr-x 1 root wheel 75348119 Dec 22 02:39 qt4/lib/libQtGui.so.4.3.3
-r-xr-xr-x 1 root wheel 5206556 Dec 22 02:40 qt4/lib/libQtNetwork.so.4.3.3
-r-xr-xr-x 1 root wheel 2917812 Dec 22 02:40 qt4/lib/libQtOpenGL.so.4.3.3
-r-xr-xr-x 1 root wheel 12483892 Dec 22 02:40 qt4/lib/libQtScript.so.4.3.3
-r-xr-xr-x 1 root wheel 2419184 Dec 22 02:40 qt4/lib/libQtSql.so.4.3.3
-r-xr-xr-x 1 root wheel 3670694 Dec 22 02:40 qt4/lib/libQtSvg.so.4.3.3
-r-xr-xr-x 1 root wheel 2099945 Dec 22 02:40 qt4/lib/libQtXml.so.4.3.3
Still quite big, 75MB for QtGui.
markd says his on i386/current the sizes are:
-rw-r--r-- 1 root wheel 12091118 Dec 6 19:19 /usr/pkg/qt4/lib/libQtGui.a
-rw-r--r-- 1 root wheel 4166660 Dec 6 19:19 /usr/pkg/qt4/lib/libQt3Support.a
-r-xr-xr-x 1 root wheel 8715480 Dec 6 19:19 /usr/pkg/qt4/lib/libQtGui.so.4.3.2
-r-xr-xr-x 1 root wheel 3136763 Dec 6 19:19 /usr/pkg/qt4/lib/libQt3Support.so.4.3.2
Still big, but about a factor 10 smaller.
Any ideas why the libraries might get that big on amd64 and what to do
about it? Or is it normal?
I don't have any CFLAGS or similar in my /etc/mk.conf.
Cheers,
Thomas