[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Specifying a C++11 compatible pre-dependency



Hi!

On Wed, 2013-05-15 at 18:15:37 +0300, Shachar Shemesh wrote:
> I have a package[1] that will not transition to testing due to failed
> compilation on powerpc. The problem is that the actual package requires
> a fairly complete C++11 support in order to compile. I have tried to
> signify this by adding "Build-Depends: gcc (>= 4:4.7)" to the dependencies.
> 
> On PowerPC, despite gcc version 4.7 (and, indeed, 4.8) being available,
> the "gcc" package is for version 4.6.4. This means that without some
> platform specific tricks in the package (as I don't have a PowerPC
> platform, these tricks are hard to know), the package fails
> dependencies. Even if that were not the case, the package would fail to
> build, as gcc points to gcc-4.6.4.
> 
> Is there some better way to cause the system to use a C++11 capable
> compiler?

You should usually (depending on the upstream build system) be able to
force a different compiler with something like «make CXX=g++-4.8»,
or at configure time for example. You'll need to depend explicitly on
g++-4.8 though.

Regards,
Guillem


Reply to: