Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-01-24 06:49:29

Am Donnerstag 23 Januar 2003 17:28 schrieb David Abrahams:
> Vladimir Prus <ghost_at_[hidden]> writes:

> > first off, thanks for providing such a good bug report. I'll
> > respond in as much detail as I can, but note that the last
> > paragraph of this email are enough to solve the issue.

Thanks. I know how hard it is to debug something without a reasonably
test or fail. And this was easy to reproduce.

> > This can be easily fixed: Just add <uses>qt to "requirements"
> > section of top-level Jamfile.

> This is weird, because when I tried to test it, I removed all
> qt-related stuff from Jürgen's project and still got the same
> problem. Are you sure there isn't something else going on?

I've followed Vladimirs suggestion and it works.

But someone broke gcc.jam. It fails to add -L option to the linker to
specify the library search path.
The follwing patch fixes this, though I'm not sure if I've put the
option at the right place.
I've also tried to add threading-support to gcc, but succeeded only in
adding _REENTRANT to the complie flags. Is this the rigth way to it ?
Can someone point me on putting -pthread to the linker command ?



* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] !
 --------------Boundary-00=_HIV70PJ98RI459HE88N9 Content-Type: text/x-diff;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gcc.jam.diff"
Index: tools/build/new/gcc.jam
RCS file: /cvsroot/boost/boost/tools/build/new/gcc.jam,v
retrieving revision 1.20
diff -u -r1.20 gcc.jam
--- tools/build/new/gcc.jam	15 Jan 2003 11:11:44 -0000	1.20
+++ tools/build/new/gcc.jam	24 Jan 2003 11:48:41 -0000
@@ -48,6 +48,7 @@
toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
toolset.flags gcc.compile OPTIONS <cxxflags> ;
toolset.flags gcc.compile DEFINES <define> ;
+toolset.flags gcc.compile DEFINES <threading>multi : _REENTRANT ;
toolset.flags gcc.compile INCLUDES <include> ;
actions compile
@@ -101,5 +102,5 @@
actions link-dll bind LIBRARIES
- $(NAME:E=g++) $(OPTIONS) -Wl,-rpath$(SPACE)-Wl,$(RPATH) -o $(<) -Wl,-soname,$(<[1]:D=) -shared $(>) $(LIBRARIES) -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) $(LIBRARIES) -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME)
+ $(NAME:E=g++) $(OPTIONS) -Wl,-rpath$(SPACE)-Wl,$(RPATH) -o $(<) -Wl,-soname,$(<[1]:D=) -shared $(>) $(LIBRARIES) -L$(LINKPATH) -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) $(LIBRARIES) -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME)

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at