tdb/build_pie.patch
Lars Müller 38a94b9f0c - Update to version 1.2.12.
+ internal code cleanups
  + crash fix for pytdb
  + fix for 4GB overflow detection

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=33
2013-06-04 15:12:30 +00:00

41 lines
1.3 KiB
Diff

Author: David Disseldorp <ddiss@samba.org>
Date: Wed Aug 15 18:33:08 CEST 2012
Build and link binaries with PIE flags.
Index: tdb-1.2.12/wscript
===================================================================
--- tdb-1.2.12.orig/wscript
+++ tdb-1.2.12/wscript
@@ -94,20 +94,27 @@ def build(bld):
bld.SAMBA_BINARY('tdbrestore',
'tools/tdbrestore.c',
- 'tdb', manpages='man/tdbrestore.8')
+ 'tdb',
+ cflags='-fPIE', ldflags='-pie',
+ manpages='man/tdbrestore.8')
bld.SAMBA_BINARY('tdbdump',
'tools/tdbdump.c',
- 'tdb', manpages='man/tdbdump.8')
+ 'tdb',
+ cflags='-fPIE', ldflags='-pie',
+ manpages='man/tdbdump.8')
bld.SAMBA_BINARY('tdbbackup',
'tools/tdbbackup.c',
'tdb',
+ cflags='-fPIE', ldflags='-pie',
manpages='man/tdbbackup.8')
bld.SAMBA_BINARY('tdbtool',
'tools/tdbtool.c',
- 'tdb', manpages='man/tdbtool.8')
+ 'tdb',
+ cflags='-fPIE', ldflags='-pie',
+ manpages='man/tdbtool.8')
# FIXME: This hardcoded list is stupid, stupid, stupid.
bld.SAMBA_SUBSYSTEM('tdb-test-helpers',