From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-21 06:41:06
> The link action in intel-linux.jam contains at the end "-Wl,-Bdynamic
> -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME)"
> First of all, I do not understand where FINDLIBS-SA and FINDLIBS-ST are
> defined and where LINK-RUNTIME is defined ?
In gcc.jam. The indel-linux toolset inherits almost everything from gcc.
> Anyway, FINDLIBS-SA and FINDLIBS-ST end up being the same in my project
> and LINK-RUNTIME is empty. And this situation results in an error from
> the linker. I found the same problem listed here:
> So first of all, we could drop the first -Wl,-Bdynamic. Additionally we
> need to end the link-line with -Wl,-Bdynamic to link to the runtime
> dynamically. Maybe someone intended to achieve this with LINK-RUNTIME?
Yes, that someone was me, and that turned out to be a bad idea. In short, use
of trailing -Wl,-Bwhatever to control linking to runtime is a kluge which
does not work since gcc 2.95 (and whatever libc was back then).
That's why this "feature" was removed for gcc, but intel was left behind.
Besides, for intel we duplicate each library on the command line -- another
kluge which is not necessary now that we compute the right library order
I've updated the intel toolset right now. Could you verify it's OK?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk