From: Dale Richards Date: Thu, 14 Dec 2023 07:39:57 +0000 Subject: setup.py: Use LDFLAGS from environment Forwarded: not-needed --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 399fb95..9a8d7eb 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ import sys +from os import environ import setuptools from wheel.bdist_wheel import bdist_wheel @@ -7,7 +8,7 @@ if sys.platform == "win32": extra_compile_args = [] libraries = ["libcrypto", "advapi32", "crypt32", "gdi32", "user32", "ws2_32"] else: - extra_compile_args = ["-std=c99"] + extra_compile_args = ["-std=c99", environ.get("LDFLAGS")] libraries = ["crypto"]