863a36e03b
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=28
41 lines
1.4 KiB
Diff
41 lines
1.4 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.11/wscript
|
|
===================================================================
|
|
--- tdb-1.2.11.orig/wscript
|
|
+++ tdb-1.2.11/wscript
|
|
@@ -94,20 +94,27 @@ def build(bld):
|
|
|
|
bld.SAMBA_BINARY('tdbrestore',
|
|
'tools/tdbrestore.c',
|
|
- 'tdb', manpages='manpages/tdbrestore.8')
|
|
+ 'tdb',
|
|
+ cflags='-fPIE', ldflags='-pie',
|
|
+ manpages='manpages/tdbrestore.8')
|
|
|
|
bld.SAMBA_BINARY('tdbdump',
|
|
'tools/tdbdump.c',
|
|
- 'tdb', manpages='manpages/tdbdump.8')
|
|
+ 'tdb',
|
|
+ cflags='-fPIE', ldflags='-pie',
|
|
+ manpages='manpages/tdbdump.8')
|
|
|
|
bld.SAMBA_BINARY('tdbbackup',
|
|
'tools/tdbbackup.c',
|
|
'tdb',
|
|
+ cflags='-fPIE', ldflags='-pie',
|
|
manpages='manpages/tdbbackup.8')
|
|
|
|
bld.SAMBA_BINARY('tdbtool',
|
|
'tools/tdbtool.c',
|
|
- 'tdb', manpages='manpages/tdbtool.8')
|
|
+ 'tdb',
|
|
+ cflags='-fPIE', ldflags='-pie',
|
|
+ manpages='manpages/tdbtool.8')
|
|
|
|
# FIXME: This hardcoded list is stupid, stupid, stupid.
|
|
bld.SAMBA_SUBSYSTEM('tdb-test-helpers',
|