reglookup: fix issue #145

This commit is contained in:
blshkv 2017-01-11 20:21:44 +08:00
parent a97f63e645
commit b87eaf8c20
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,21 @@
--- SConstruct.orig 2011-07-22 10:05:25.000000000 +0800
+++ SConstruct 2017-01-11 20:18:52.022609874 +0800
@@ -3,7 +3,8 @@
sys.dont_write_bytecode = True
from regfi_version import REGFI_VERSION
-cflags = '-std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden'
+cflags = os.environ['CFLAGS']
+cflags += ' -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden'
cflags += ' -DREGFI_VERSION=\'"%s"\'' % REGFI_VERSION
cflags += ' -ggdb'
@@ -21,6 +22,8 @@
LIBPATH=['lib', '/usr/local/lib'],
LIBS=['m', 'pthread', 'regfi', 'talloc'])
+env.Append( SHLINKFLAGS=" -Wl,-soname=libregfi.so " )
+
# Libraries
libregfi_static = env.Library(lib_src)
libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc'])

View file

@ -22,7 +22,9 @@ RDEPEND="sys-libs/talloc
S="${WORKDIR}/${PN}-src-${PV}"
src_prepare() {
epatch ${FILESDIR}/1.0.1-cflags.patch
mv pyregfi-distutils.py setup.py
}
src_compile() {
escons