Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51362 - wxGTK-2.4.1-r1: wx-config --static doesn't work
Summary: wxGTK-2.4.1-r1: wx-config --static doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 01:26 UTC by crusaderky
Modified: 2006-04-10 14:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crusaderky 2004-05-18 01:26:49 UTC
$ wx-config --libs
-pthread -lwx_gtk2-2.4

$ wx-config --static --libs
 -pthread    /usr/lib/libwx_gtk2-2.4.a -Wl,--export-dynamic -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lpng -ljpeg -ltiff -lz -Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm

g++ myapp.o `wx-config --libs`
(OK)

g++ myapp.o `wx-config --static --libs`
g++: /usr/lib/libwx_gtk2-2.4.a: No such file or directory
make: *** [myapp] Error 1

$ emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apache2 apm arts avi berkdb bonobo cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd dvdr encode esd faad fbcon flac flash foomaticdb gd gdbm ggi gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imap imlib innodb ipv6 java jikes joystick jpeg kde kerberos krb4 lcms ldap libg++ libwww linguas_it mad mcal md5sum memlimit mikmod mmx mng motif mozilla moznoirc mozp3p mozsvg mpeg mpi mysql ncurses nls nptl odbc offensive oggvorbis opengl oss pam parse-clocks pdflib perl pic png ppds prelude python qt quicktime readline samba scanner sdl skey slang slp snmp socks5 speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype usb v4l v4l2 vim-with-x wmf wxwindows x86 xchattext xml xml2 xmms xv xvid yaz zlib"
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2005-04-20 15:07:58 UTC
Its compiled with shared libraries. You'll have to modify the ebuild to use static libraries by adding --disable-shared  to configure.
Comment 2 crusaderky 2005-04-20 15:24:47 UTC
AFAIK, it should be the opposite. wxWindows has both shared and static libraries, unless you disable them. I assume that there is a --disable-static flag set in the config. It should be left to the user with a USE switch.
Comment 3 Mart Raudsepp gentoo-dev 2006-04-10 14:54:55 UTC
If --disable-shared is not specified to configure, only shared libraries are built.
If --disable-shared is specified to configure, only static libraries are built.