2012-08-15 20:25:16 +02:00
|
|
|
Author: David Disseldorp <ddiss@samba.org>
|
|
|
|
Date: Wed Aug 15 18:33:08 CEST 2012
|
|
|
|
|
|
|
|
Build and link binaries with PIE flags.
|
|
|
|
|
2012-12-02 18:30:18 +01:00
|
|
|
Index: tdb-1.2.11/wscript
|
2012-08-15 19:14:48 +02:00
|
|
|
===================================================================
|
2012-12-02 18:30:18 +01:00
|
|
|
--- tdb-1.2.11.orig/wscript
|
|
|
|
+++ tdb-1.2.11/wscript
|
2012-08-15 19:14:48 +02:00
|
|
|
@@ -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',
|