Build-Depends on certain architecture
Hello
A package of mine, `synergy', does compile on every platform
except on hppa. hppa needs at least gcc 3.0. But this version
of gcc seems to have a bug, synergy doesn't compile with it
on hppa. So I need to use gcc 3.2 on hppa.
Now I tried to figure out the correct statements for the
`Build-Depends' field. On every platform, the default gcc
should be used, except on hppa, where gcc-3.2 should be used.
Here's the old field:
Build-Depends: debhelper (>> 3.0.0), xlibs-dev
And here's the new one:
Build-Depends: g++-3.2 [hppa], debhelper (>> 3.0.0), xlibs-dev
Is this correct?
Then I will need to change debian/rules accordingly. How should
I test for the architecture in this case?
dpkg-architecture -qDEB_BUILD_ARCH
or
dpkg-architecture -qDEB_HOST_ARCH
(I think the second one makes more sense.)
Daniel
Reply to: