mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
reglookup: fix issue #145
This commit is contained in:
parent
a97f63e645
commit
b87eaf8c20
2 changed files with 23 additions and 0 deletions
21
app-forensics/reglookup/files/1.0.1-cflags.patch
Normal file
21
app-forensics/reglookup/files/1.0.1-cflags.patch
Normal 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'])
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue