GNU bug report logs - #26644
[m4/libtool.m4] TCC and unsupported option '-fPIC'

Previous Next

Package: libtool;

Reported by: Marcel Raad <marcir86 <at> gmail.com>

Date: Mon, 24 Apr 2017 19:53:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Marcel Raad <marcir86 <at> gmail.com>
To: 26644 <at> debbugs.gnu.org
Subject: bug#26644: [m4/libtool.m4] TCC and unsupported option '-fPIC'
Date: Mon, 24 Apr 2017 21:50:25 +0200
Hi,

I'm building curl [1] with TCC (Tiny C compiler) on Linux. For every
compiled source file, I get:
tcc: warning: unsupported option '-fPIC'

What I do is
./configure --enable-warnings CC=tcc && make
which enables warnings about unsupported GCC options (-Wunsupported)
at build time, but not at configure time.

libtool.m4 adds -fPIC, but according to the TCC documentation [2], TCC
doesn't support PIC at all.

I'm using Ubuntu 16.04 with libtool 2.4.6 and TCC 0.9.26.

[1] https://github.com/curl/curl/
[2] http://bellard.org/tcc/tcc-doc.html#SEC17

Thanks,
Marcel




This bug report was last modified 8 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.