On 11/16/2017 12:04 AM, James Almer wrote: > On 11/15/2017 11:55 PM, Carl Eugen Hoyos wrote: >> 2017-11-16 3:51 GMT+01:00 James Almer <jamr...@gmail.com>: >> >>> configure can't even succeed with --toolchain=hardened on mingw-w64, so >>> looks like i wouldn't have been able to reproduce it to begin with. >> >> Try replacing toolchain with --extra-cflags=-fstack-protector-all: >> $ configure --extra-cflags=-fstack-protector-all --enable-small --disable-avx > > BEGIN /tmp/ffconf.pipZnMhH/test.c > 1 int main(void){ return 0; } > END /tmp/ffconf.pipZnMhH/test.c > gcc -fstack-protector-all -c -o /tmp/ffconf.pipZnMhH/test.o > /tmp/ffconf.pipZnMhH/test.c > gcc -o /tmp/ffconf.pipZnMhH/test.exe /tmp/ffconf.pipZnMhH/test.o > F:/msys/tmp/ffconf.pipZnMhH/test.o:test.c:(.text+0x33): undefined > reference to `__stack_chk_fail' > F:/msys/tmp/ffconf.pipZnMhH/test.o:test.c:(.rdata$.refptr.__stack_chk_guard[.refptr.__stack_chk_guard]+0x0): > undefined reference to `__stack_chk_guard' > collect2.exe: error: ld returned 1 exit status
Looks like adding --enable-ldflags=-fstack-protector-all to the above command line makes it work. > >> >> Thank you for the useful info, I didn't know that hardened doesn't >> work on Windows. >> >> Carl Eugen >> _______________________________________________ >> ffmpeg-devel mailing list >> ffmpeg-devel@ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel >> > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel