Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
85fd6b44
Commit
85fd6b44
authored
Nov 07, 2017
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues while building with --dynamic-linking.
parent
da4e1d48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
setup.py
setup.py
+4
-9
No files found.
setup.py
View file @
85fd6b44
...
...
@@ -163,16 +163,11 @@ class BuildExtCommand(build_ext):
building_for_osx
=
'macosx'
in
self
.
plat_name
building_for_linux
=
'linux'
in
self
.
plat_name
if
not
self
.
dynamic_linking
and
building_for_linux
:
module
.
sources
.
append
(
'yara/libyara/proc/linux.c'
)
if
not
self
.
dynamic_linking
and
building_for_windows
:
module
.
sources
.
append
(
'yara/libyara/proc/windows.c'
)
if
not
self
.
dynamic_linking
and
building_for_osx
:
module
.
sources
.
append
(
'yara/libyara/proc/match.c'
)
if
building_for_linux
:
module
.
define_macros
.
append
((
'USE_LINUX_PROC'
,
'1'
))
if
building_for_windows
:
module
.
define_macros
.
append
((
'USE_WINDOW_PROC'
,
'1'
))
module
.
define_macros
.
append
((
'_CRT_SECURE_NO_WARNINGS'
,
'1'
))
module
.
libraries
.
append
(
'kernel32'
)
module
.
libraries
.
append
(
'advapi32'
)
...
...
@@ -181,6 +176,7 @@ class BuildExtCommand(build_ext):
module
.
libraries
.
append
(
'ws2_32'
)
if
building_for_osx
:
module
.
define_macros
.
append
((
'USE_MACH_PROC'
,
'1'
))
module
.
include_dirs
.
append
(
'/usr/local/opt/openssl/include'
)
module
.
include_dirs
.
append
(
'/opt/local/include'
)
module
.
library_dirs
.
append
(
'/opt/local/lib'
)
...
...
@@ -229,7 +225,6 @@ class BuildExtCommand(build_ext):
exclusions
=
[
os
.
path
.
normpath
(
x
)
for
x
in
exclusions
]
for
directory
,
_
,
files
in
os
.
walk
(
'yara/libyara/'
):
if
directory
!=
'yara/libyara/proc'
:
for
x
in
files
:
x
=
os
.
path
.
normpath
(
os
.
path
.
join
(
directory
,
x
))
if
x
.
endswith
(
'.c'
)
and
x
not
in
exclusions
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment