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
6a9dac80
Commit
6a9dac80
authored
7 years ago
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building with --dynamic-linking option.
parent
722611eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
setup.py
setup.py
+7
-3
No files found.
setup.py
View file @
6a9dac80
...
...
@@ -163,11 +163,16 @@ class BuildExtCommand(build_ext):
building_for_osx
=
'macosx'
in
self
.
plat_name
building_for_linux
=
'linux'
in
self
.
plat_name
if
building_for_linux
:
if
not
self
.
dynamic_linking
and
building_for_linux
:
module
.
sources
.
append
(
'yara/libyara/proc/linux.c'
)
if
building_for_windows
:
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_windows
:
module
.
define_macros
.
append
((
'_CRT_SECURE_NO_WARNINGS'
,
'1'
))
module
.
libraries
.
append
(
'kernel32'
)
module
.
libraries
.
append
(
'advapi32'
)
...
...
@@ -176,7 +181,6 @@ class BuildExtCommand(build_ext):
module
.
libraries
.
append
(
'ws2_32'
)
if
building_for_osx
:
module
.
sources
.
append
(
'yara/libyara/proc/mach.c'
)
module
.
include_dirs
.
append
(
'/usr/local/opt/openssl/include'
)
module
.
include_dirs
.
append
(
'/opt/local/include'
)
module
.
library_dirs
.
append
(
'/opt/local/lib'
)
...
...
This diff is collapsed.
Click to expand it.
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