diff --git a/mingw64-winpthreads.spec b/mingw64-winpthreads.spec index eb424df..0b99b06 100644 --- a/mingw64-winpthreads.spec +++ b/mingw64-winpthreads.spec @@ -73,10 +73,11 @@ touch empty.c popd # No ssp support in gcc-cross-bootstrap +# Hence we repeat the LDFLAGS without -fstack-protector %{_mingw64_configure} \ --enable-static \ --enable-shared \ - LDFLAGS="-fno-stack-protector" + LDFLAGS="--Wl,--exclude-libs=libintl.a -Wl,--exclude-libs=libiconv.a -Wl,--no-keep-memory" make %{?_smp_mflags} %install