From 5fcddf0e63a970fc27a987f9bb14ea8d5b537998b5c0b3684ab2194c0fb89f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 25 Nov 2019 12:54:59 +0000 Subject: [PATCH] Don't overwrite LDFLAGS OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=29 --- mingw64-winpthreads.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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