File: 0002-setup.py-Use-LDFLAGS-from-environment.patch

package info (click to toggle)
pylsqpack 0.3.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,996 kB
  • sloc: ansic: 146,535; perl: 340; python: 198; sh: 53; makefile: 21
file content (28 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Dale Richards <dale@dalerichards.net>
Date: Sat, 30 Dec 2023 16:18:05 -0500
Subject: setup.py: Use LDFLAGS from environment

---
 setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 1f50d73..a7a0ed7 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
 import os.path
 import sys
+from os import environ
 
 import setuptools
 from wheel.bdist_wheel import bdist_wheel
@@ -12,7 +13,7 @@ include_dirs = [
 if sys.platform == "win32":
     include_dirs.append(os.path.join("vendor", "ls-qpack", "wincompat"))
 else:
-    extra_compile_args = ["-std=c99"]
+    extra_compile_args = ["-std=c99", environ.get("LDFLAGS")]
 
 
 class bdist_wheel_abi3(bdist_wheel):