Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/py-donut-shellcode: Fix build on i386
Reported by: pkg-fallout
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- setup.py.orig 2023-05-16 05:00:53 UTC | ||
+++ setup.py | ||
@@ -1,10 +1,18 @@ | ||
from setuptools import Extension, setup | ||
import sys | ||
+import platform | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
-static_libraries = ['aplib64'] | ||
+if platform.system() == 'FreeBSD': | ||
+ if platform.machine() == 'i386': | ||
+ static_libraries = ['aplib32'] | ||
+ elif platform.machine() == 'amd64': | ||
+ static_libraries = ['aplib64'] | ||
+else: | ||
+ static_libraries = ['aplib64'] | ||
+ | ||
static_lib_dir = 'lib' | ||
libraries = [] | ||
library_dirs = ['lib'] |