Updated config files to allow build on aarch64 (#1022970)
This commit is contained in:
parent
c5eb39da79
commit
d4277ffe45
11
libdb.spec
11
libdb.spec
@ -4,7 +4,7 @@
|
||||
Summary: The Berkeley DB database library for C
|
||||
Name: libdb
|
||||
Version: 5.3.28
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
|
||||
Source1: http://download.oracle.com/berkeley-db/db.1.85.tar.gz
|
||||
# For mt19937db.c
|
||||
@ -210,6 +210,7 @@ popd
|
||||
|
||||
cd dist
|
||||
./s_config
|
||||
cd ..
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
@ -224,6 +225,11 @@ test -d dist/dist-tls || mkdir dist/dist-tls
|
||||
/bin/sh libtool --tag=CC --mode=compile %{__cc} $RPM_OPT_FLAGS -Idb.1.85/PORT/%{_os}/include -D_REENTRANT -c util/db_dump185.c -o dist/dist-tls/db_dump185.lo
|
||||
/bin/sh libtool --tag=LD --mode=link %{__cc} -o dist/dist-tls/db_dump185 dist/dist-tls/db_dump185.lo db.1.85/PORT/%{_os}/libdb.a
|
||||
|
||||
# Update config files to understand aarch64
|
||||
for dir in dist lang/sql/sqlite lang/sql/jdbc lang/sql/odbc; do
|
||||
cp /usr/lib/rpm/redhat/config.{guess,sub} "$dir"
|
||||
done
|
||||
|
||||
pushd dist/dist-tls
|
||||
ln -sf ../configure .
|
||||
%configure -C \
|
||||
@ -404,6 +410,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_libdir}/libdb_java.so
|
||||
|
||||
%changelog
|
||||
* Wed Nov 06 2013 Jan Stanek <jstanek@redhat.com> - 5.3.28-2
|
||||
- Updated config files to allow build on aarch64 (#1022970)
|
||||
|
||||
* Tue Oct 08 2013 Jan Stanek <jstanek@redhat.com> - 5.3.28-1
|
||||
- Added Sleepycat to the license list (#1013841)
|
||||
- Updated to 5.3.28 (#1013233)
|
||||
|
Loading…
Reference in New Issue
Block a user