Skip to content
Snippets Groups Projects
Commit 5b46e064 authored by Matthew McGill's avatar Matthew McGill
Browse files

Merge branch 'libcapstone_version_build_fix' into 'master'

Libcapstone version build fix

See merge request allnp/security_transforms!31

Former-commit-id: c1f89bf75e1aa72780b50b5c502726f5a46b74f4
parents da781b59 74f589b9
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,13 @@ if "CYGWIN" in sysname:
Export('env')
env.Install("$SECURITY_TRANSFORMS_HOME/lib/", "$SECURITY_TRANSFORMS_HOME/libcapstone/libcapstone.so.4")
env.Command(os.environ['SECURITY_TRANSFORMS_HOME']+"/lib/libcapstone.so", os.environ['SECURITY_TRANSFORMS_HOME']+"/lib/libcapstone.so.4", "ln -s $SOURCE.abspath $TARGET.abspath")
# get the libcapstone.so.[version] file regardless of the version extension
libcapstone_path = Glob(os.environ['SECURITY_TRANSFORMS_HOME']+'/libcapstone/libcapstone.so.*')
assert len(libcapstone_path) <= 1, "More than one candidate for libcapstone.so.[version]?!"
libcapstone_path = env.Install("$SECURITY_TRANSFORMS_HOME/lib/", libcapstone_path)
env.Command(os.environ['SECURITY_TRANSFORMS_HOME']+"/lib/libcapstone.so", libcapstone_path, "ln -s $SOURCE.abspath $TARGET.abspath")
libcapstone=os.environ['SECURITY_TRANSFORMS_HOME']+"/lib/libcapstone.so"
libehp=env.SConscript("libehp/SConscript", variant_dir='scons_build/libehp')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment