Accepting request 1141498 from home:ecsos
- Fix build error on Leap. OBS-URL: https://build.opensuse.org/request/show/1141498 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=149
This commit is contained in:
parent
20a1d8f4b5
commit
7a4cda7555
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 25 11:22:31 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Fix build error on Leap.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 02 08:33:49 UTC 2024 - kkaempf@suse.com
|
||||
|
||||
|
12
swig.spec
12
swig.spec
@ -43,7 +43,13 @@ BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison >= 3.5
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
%if 0%{?suse_version} <= 1600
|
||||
BuildRequires: gcc12
|
||||
BuildRequires: gcc12-c++
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pcre2-devel
|
||||
BuildRequires: perl
|
||||
@ -121,6 +127,10 @@ understandig SWIG usage.
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} <= 1600
|
||||
export CC=gcc-12
|
||||
export CXX=g++-12
|
||||
%endif
|
||||
%ifarch s390 s390x
|
||||
export CCSHARED="-fPIC"
|
||||
%endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user