Accepting request 750846 from home:rhabacker:branches:windows:mingw:win32

- Use macro _mingw32_ldflags_bootstrap from mingw32-filesystem package for setting LDFLAGS to keep common settings in one place
- Revert to use mingw32-cross-gcc-bootstrap again

OBS-URL: https://build.opensuse.org/request/show/750846
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=30
This commit is contained in:
Fridrich Strba 2019-11-25 18:52:15 +00:00 committed by Git OBS Bridge
parent 69bc909dbc
commit 810c9620ad
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 25 17:31:02 UTC 2019 - Ralf Habacker <ralf.habacker@freenet.de>
- Use macro _mingw32_ldflags_bootstrap from mingw32-filesystem package
for setting LDFLAGS to keep common settings in one place
- Revert to use mingw32-cross-gcc-bootstrap again
-------------------------------------------------------------------
Mon Nov 25 09:23:14 UTC 2019 - Ralf Habacker <ralf.habacker@freenet.de>

View File

@ -25,7 +25,7 @@ Group: Development/Libraries/C and C++
URL: http://mingw-w64.sf.net/
Source: http://downloads.sf.net/mingw-w64/mingw-w64-v%{version}.tar.bz2
Source9: %name-rpmlintrc
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-bootstrap
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-runtime
@ -71,9 +71,12 @@ touch empty.c
%_mingw32_cc -c empty.c
%_mingw32_ar rsc libpthread.a empty.o
popd
# No ssp support in gcc-cross-bootstrap
# Hence we use dedicated LDFLAGS (without -fstack-protector)
%_mingw32_configure \
--enable-static \
--enable-shared
--enable-shared \
LDFLAGS="%{_mingw32_ldflags_bootstrap}"
make %{?_smp_mflags}
%install