[FFmpeg-devel] MinGW-w64 x86_64 spams warning: -fPIC ignored for target
Gianluigi Tiesi
mplayer at netfarm.it
Mon Apr 8 06:31:04 CEST 2013
Hi,
By looking at configure script the code for PIC detection checks if
__PIC__, __pic__ or PIC are defined (on linux only when passing shared)
mingw-w64 on x86_64 targets always defines __PIC__ and __pic__
but warns when passing -fPIC as gcc option:
warning: -fPIC ignored for target (all code is position independent) [enabled by default]
the resulting compilation is somehow unreadable (each gcc call has a warning printed)
I've changed configure using this check:
if test $target_os != "mingw32"; then
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
fi
but is obiviously ugly
do you known a better solution? using a flag filter looks like an overkill to me
mingw from debian/sid
gcc version 4.6.3 (GCC)
Regards
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
More information about the ffmpeg-devel
mailing list