Now ./configure prints this warning during build: "MPlayer compilation will use the CPPFLAGS/CFLAGS/LDFLAGS/YASMFLAGS set by you, but: *** *** DO NOT REPORT BUGS IF IT DOES NOT COMPILE/WORK! *** *** It is strongly recommended to let MPlayer choose the correct *FLAGS! To do so, remove *FLAGS from the environment an re-run configure. You can use --extra-*flags to add custom flags if necessary." To avoid it ebuild should not replace CFLAGS and LDFLAGS, but append instead, it is fixed in mplayer2 and mpv ebuilds: CFLAGS= LDFLAGS= ./configure \ --cc="$(tc-getCC)" \ --extra-cflags="${CFLAGS}" \ --extra-ldflags="${LDFLAGS}" \
x86_64-pc-linux-gnu-gcc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -march=native -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -maes -O2 -pipe -ggdb3 -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/ -D_REENTRANT -I/usr/include -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include -I/usr/include/libdvdread -c -o libmpcodecs/vf_harddup.o libmpcodecs/vf_harddup.c seems it does the right thing, simply ignore the warning