pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/43465 (devel/boost-libs PLIST incorrect)
The following reply was made to PR pkg/43465; it has been noted by GNATS.
From: Tim Zingelman <tez%netbsd.org@localhost>
To: Hauke Fath <hauke%espresso.rhein-neckar.de@localhost>
Cc: gnats-bugs%netbsd.org@localhost, jmmv%netbsd.org@localhost
Subject: Re: pkg/43465 (devel/boost-libs PLIST incorrect)
Date: Wed, 6 Oct 2010 18:18:48 -0500
>=A0I'm looking at how to
> best work around this '-std=3Dc++0x required' problem now.
So, it looks like the real fix might be to adjust
pkgsrc/mk/compiler/gcc.mk to add something like these lines:
.if !empty(USE_LANGUAGES:Mc++0x)
GCC_REQD+=3D 4.4
_WRAP_EXTRA_ARGS.CXX+=3D -std=3Dc++0x
.endif
and then add to the pkgsrc/devel/boost-libs/Makefile this line:
USE_LANGUAGES+=3D c++0x
Trouble is this then requires at least gcc 4.4 to build boost-libs,
while in reality they build fine with 3.4.6... a bit of chicken and
egg, since we'd like to check CC_VERSION to see which compiler version
we have and then if we have gcc-4.4+ add the USE_LANGUAGES+=3D c++0x...
but it is not clear if there is a clean way to do that since
mk/compiler.mk sets CC_VERSION and so it can't also later act on
USE_LANGUAGES.
A short term work around is to simply add:
.if !empty(CC_VERSION:Mgcc-4.4.*)
_WRAP_EXTRA_ARGS.CXX+=3D -std=3Dc++0x
.endif
to the pkgsrc/devel/boost-libs/Makefile but I think this should not be
added to the cvs repo because the _WRAP_EXTRA_ARGS.CXX is likely
intended to be internal to pkgsrc/mk/...
Can anyone else comment on this?
Home |
Main Index |
Thread Index |
Old Index