Changeset 283
- Timestamp:
- 08/07/15 18:02:48 (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r282 r283 1 #-*- mode: Python;-*- 2 1 3 import sys 2 4 import os 3 5 sys.dont_write_bytecode = True 4 6 from regfi_version import REGFI_VERSION 7 ABI_VERSION=REGFI_VERSION.rsplit('.',1)[0] 5 8 6 # Package Maintainers: should any of these options be omitted during package7 # build, instead relying on CFLAGS/LDFLAGS to specify them when appropriate?9 # Package Maintainers: should any of these options in the first line be omitted during 10 # package build, instead relying on CFLAGS/LDFLAGS to specify them when appropriate? 8 11 cflags = '-std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden' 9 12 cflags += ' -DREGFI_VERSION=\'"%s"\' ' % REGFI_VERSION 10 13 cflags += os.environ.get('CFLAGS','-fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2') 11 14 12 linkflags = "-shared -fPIC -Wl,-soname,libregfi.so.%s " % REGFI_VERSION 13 linkflags += os.environ.get('LDFLAGS','-z relro -z now') 14 15 linkflags = "-fPIC " + os.environ.get('LDFLAGS',"-Wl,-z,relro,-z,now") 15 16 16 17 lib_src = ['lib/regfi.c', … … 24 25 CC=cc, 25 26 CFLAGS=cflags, 27 LINKFLAGS=linkflags, 26 28 CPPPATH=['include', '/usr/local/include'], 27 29 LIBPATH=['lib', '/usr/local/lib'], … … 32 34 libregfi_static = env.Library(lib_src) 33 35 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc'], 34 LINKFLAGS=linkflags)36 SHLIBVERSION=ABI_VERSION) 35 37 36 38 … … 65 67 66 68 env.Install(destdir+bindir, [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 67 libinstall = env.Install (destdir+libdir, [libregfi, libregfi_static])69 libinstall = env.InstallVersionedLib(destdir+libdir, [libregfi, libregfi_static], SHLIBVERSION=ABI_VERSION) 68 70 env.Install(destdir+includedir+'/regfi', Glob('include/*.h')) 69 71 env.Install(destdir+mandir+'/man1', [man_reglookup, man_reglookup_recover, -
trunk/regfi_version.py
r277 r283 1 1 SVN_REV = "$Rev$" 2 REGFI_VERSION = "99.99.99.%s" % SVN_REV.split(' ')[1] 2 LATEST='1.0.1' 3 REGFI_VERSION = "%s.%s" % (LATEST, SVN_REV.split(' ')[1])
Note: See TracChangeset
for help on using the changeset viewer.