[ wxwindows-Bugs-1787512 ] wx-config gives erronous output

SourceForge.net noreply at sourceforge.net
Tue Sep 4 01:26:21 PDT 2007


Bugs item #1787512, was opened at 2007-09-04 09:59
Message generated for change (Comment added) made by vadz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1787512&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Utils
Group: Platform specific
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Peter Lundgren (spirouz)
Assigned to: Nobody/Anonymous (nobody)
Summary: wx-config gives erronous output

Initial Comment:
I have discovered that wx-config in linux gives a funny output which messes up my linking. The output is this: "~$ wx-config --libs
-pthread   -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6"

The first library parameter should be: "-lpthread". If I manually paste the text above and change the first parameter accordingly, the build succeeds. I discovered this in Gentoo and thought it was a flaw in the ebuild there, but now that I tested Ubuntu I get the same thing. It is also the same for wx-widgets 2.4 and 2.6.

----------------------------------------------------------------------

>Comment By: Vadim Zeitlin (vadz)
Date: 2007-09-04 10:26

Message:
Logged In: YES 
user_id=71618
Originator: NO

What exactly is funny about this? "-pthread" is a valid gcc option, what
compiler/architecture do you use that it doesn't work for you?

Finally, replacing -pthread with -lpthread is *not* a safe thing to do.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1787512&group_id=9863




More information about the wx-dev mailing list