On 7/6/22 11:36, Nilesh Patra wrote:
I took a look again after sometime, it seems to happen because libtool tries to compilewith 'gcc' and not the host compiler during link time.| libtool: link: gcc -shared -fPIC -DPIC .libs/AADV.o .libs/ABS.o .libs/ACLOCK.o| .libs/ADDTO.o .libs/ADV.o .libs/ADV2.o .libs/ADV3.o ....... Is there a way to change this to the host compiler instead?
the actual problem seems to be that you are bypassing any buildsystem (because there is none), and just build directly in d/rules.
and *there*, the CC variable seems to just evaluate to 'cc'.now the quick fix is (i think) to just include '/usr/share/dpkg/buildtools.mk' at the beginning of d/rules.
another possibility would be to provide a proper Makefile to perform the build (either by patching upstream; or by just dropping it into debian/ and instruct 'dh' to use it) and let dh perform its magic. personally i think i would prefer this solution.
none of my suggestions have been tested in real life, so take them with a grain of salt.
gfdmasr IOhannes
Attachment:
OpenPGP_0xB65019C47F7A36F8.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature