Boost logo

Boost :

From: DY, JERRY U (SBCSI) (jd2419_at_[hidden])
Date: 2004-05-12 01:40:16


I have attached the updated acc-tools.jam file located in
boost_1_31_0/tools/build/v1.

I added the following option to the compile line:

+z - to make the compiler generate PIC (position independent code) --
required for shared libraries.
-w - suppresses warning messages

And to the link line:

-b - to tell the linker to generate a shared library instead of an
executable. I'm assuming that aCC-Link-action is only used for
generating shared library?

Do you happen to know which thread functions where missing?

-Jerry

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of David Abrahams
Sent: Tuesday, May 11, 2004 1:50 PM
To: boost_at_[hidden]
Subject: [boost] Re: changing aCC-Link-action

"DY, JERRY U (SBCSI)" <jd2419_at_[hidden]> writes:

> I would like to add options to the compile and link line used for
> building the threads library. I have added as follows but not sure if
> it's the proper place for it. With these changes, I'm able to cleanly
> compile and build the threads shared lib using aC++ 3.55 compiler.
> Credit to the HP aC++ team for their help on hpux.hpp changes.
>
> boost_1_31_0/tools/build/v1/acc-tools.jam:105
> $(acc.bin-directory)$(CXX) -AA -mt +z -w -c +W823 -I$(BOOST_ROOT)
> -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDR
> S)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
>
> boost_1_31_0/tools/build/v1/acc-tools.jam:82
> $(acc.bin-directory)$(CXX) $(LINKFLAGS) -AA -mt -b -o "$(<[1])"
> -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)"
> -l$(FINDLIBS)
>
> boost_1_31_0/boost/config/platform/hpux.hpp:63
> #define BOOST_HAS_PTHREADS

Hi Jerry,

Thanks for the info. I don't think we want to define
BOOST_HAS_PTHREADS unconditionally, because IIRC at least some
versions of HPUX's headers don't contain one or two of the functions
used by Boost.Threads

It's more effective to post a patch as an attachment, so there's no
ambiguity about how mailers have mangled it, and so it can be
automatically applied.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk