| 1 |
From: Dale Richards <[email protected]> |
| 2 |
Date: Thu, 14 Dec 2023 07:39:57 +0000 |
| 3 |
Subject: setup.py: Use LDFLAGS from environment |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
--- |
| 7 |
setup.py | 3 ++- |
| 8 |
1 file changed, 2 insertions(+), 1 deletion(-) |
| 9 |
|
| 10 |
diff --git a/setup.py b/setup.py |
| 11 |
index 399fb95..9a8d7eb 100644 |
| 12 |
--- a/setup.py |
| 13 |
+++ b/setup.py |
| 14 |
@@ -1,4 +1,5 @@ |
| 15 |
import sys |
| 16 |
+from os import environ |
| 17 |
|
| 18 |
import setuptools |
| 19 |
from wheel.bdist_wheel import bdist_wheel |
| 20 |
@@ -7,7 +8,7 @@ if sys.platform == "win32": |
| 21 |
extra_compile_args = [] |
| 22 |
libraries = ["libcrypto", "advapi32", "crypt32", "gdi32", "user32", "ws2_32"] |
| 23 |
else: |
| 24 |
|
| 25 |
+ extra_compile_args = ["-std=c99", environ.get("LDFLAGS")] |
| 26 |
libraries = ["crypto"] |
| 27 |
|
| 28 |
|