[Debian-med-packaging] Bug#980484: gmap FTCBFS: AC_RUN_IFELSE
Helmut Grohne
helmut at subdivi.de
Tue Jan 19 12:26:10 GMT 2021
Source: gmap
Version: 2020-12-17+ds-2
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs
gmap fails to cross build from source, because it uses AC_RUN_IFELSE a
lot. I wa able to reduce the impact somewhat with the attached patch:
* When checking for e.g. __builtin_popcount, still check that it works
on native builds, but during cross builds assume that it works when
the symbol is available.
* The bsr assembler instruction test doesn't gain anything from running
it. It can be demoted to a link test.
* Checks involving #include <immintrin.h> can be skipped when the
header is unavailable.
This still leaves a number of remaining AC_RUN_IFELSE and gmap will not
become cross buildable. Please consider applying my patch as an
incremental improvement nonetheless.
Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 2629 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20210119/9b90aa68/attachment.patch>
More information about the Debian-med-packaging
mailing list