- Timestamp:
- 06/05/15 23:32:25 (9 years ago)
- Location:
- trunk
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r278 r279 5 5 6 6 cflags = '-std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden' 7 cflags += ' -DREGFI_VERSION=\'"%s"\'' % REGFI_VERSION 8 cflags += ' -ggdb' 7 cflags += ' -DREGFI_VERSION=\'"%s"\' ' % REGFI_VERSION 8 cflags += os.environ.get('CFLAGS','-fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2') 9 10 linkflags = "-shared -fPIC -Wl,-soname,libregfi.so.%s " % REGFI_VERSION 11 linkflags += os.environ.get('LDFLAGS','-z relro -z now') 9 12 10 13 lib_src = ['lib/regfi.c', … … 22 25 LIBS=['m', 'pthread', 'regfi', 'talloc']) 23 26 27 24 28 # Libraries 25 29 libregfi_static = env.Library(lib_src) 26 30 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc'], 27 LINKFLAGS= "-shared -fPIC -Wl,-soname,libregfi.so.%s" % REGFI_VERSION)31 LINKFLAGS=linkflags) 28 32 29 33 … … 65 69 env.Install(destdir+mandir+'/man1', [man_reglookup, man_reglookup_recover, 66 70 man_reglookup_timeline]) 67 if os.getuid() == 0: 71 72 if os.getuid() == 0 and destdir == '': 68 73 env.AddPostAction(libinstall, 'ldconfig') 69 74 … … 73 78 'python/pyregfi/structures.py', 74 79 'python/pyregfi/winsec.py'], 75 "python pyregfi-distutils.py install --root=/%s | tee pyregfi2-install.log" % destdir)80 "python setup.py install --root=/%s | tee pyregfi2-install.log" % destdir) 76 81 77 82 python_path = os.popen('which python3').read() … … 81 86 'python/pyregfi/structures.py', 82 87 'python/pyregfi/winsec.py'], 83 "python3 pyregfi-distutils.py install --root=/%s | tee pyregfi3-install.log" % destdir)88 "python3 setup.py install --root=/%s | tee pyregfi3-install.log" % destdir) 84 89 85 90 # API documentation
Note: See TracChangeset
for help on using the changeset viewer.