Build and link binaries with PIE flags.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=24
This commit is contained in:
Lars Müller
2012-08-15 17:14:48 +00:00
committed by Git OBS Bridge
parent 2c43a5f155
commit aecc9cf7fa
3 changed files with 42 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ Source: http://download.samba.org/pub/tdb/tdb-%{version}.tar.gz
Source1: http://download.samba.org/pub/tdb/tdb-%{version}.tar.asc
Source4: baselibs.conf
Patch0: ignore-tdb1-run-transaction-expand.diff
Patch1: build_pie.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -118,6 +119,7 @@ This package contains the python bindings for the Tdb library.
%ifarch ppc ppc64
%patch0 -p1
%endif
%patch1 -p1
%build
%if 0%{?suse_version} && 0%{?suse_version} < 911