Blame dont-include-standard-paths-in-runtime-libdir.patch
|
|
425c7f6 |
From db6b1c3e0da45059394c5376ef8964c323021e32 Mon Sep 17 00:00:00 2001
|
|
|
1b51226 |
From: Karolina Surma <ksurma@redhat.com>
|
|
|
1b51226 |
Date: Thu, 3 Mar 2022 11:07:06 +0100
|
|
|
425c7f6 |
Subject: [PATCH] Don't include standard paths in runtime library paths
|
|
|
1b51226 |
|
|
|
1b51226 |
---
|
|
|
425c7f6 |
setup3.py | 3 ++-
|
|
|
425c7f6 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
1b51226 |
|
|
|
1b51226 |
diff --git a/setup3.py b/setup3.py
|
|
|
425c7f6 |
index fe388ba..1b8a32d 100644
|
|
|
1b51226 |
--- a/setup3.py
|
|
|
1b51226 |
+++ b/setup3.py
|
|
|
425c7f6 |
@@ -39,6 +39,7 @@ import os
|
|
|
425c7f6 |
import re
|
|
|
425c7f6 |
import sys
|
|
|
425c7f6 |
import glob
|
|
|
425c7f6 |
+import sysconfig
|
|
|
425c7f6 |
|
|
|
425c7f6 |
if (sys.version_info[0] < 3) and (sys.version_info >= (2, 6)) :
|
|
|
425c7f6 |
# Silence deprecation warnings during "setup"
|
|
|
425c7f6 |
@@ -539,7 +540,7 @@ pybsddb_doc/>`__ --
|
|
|
1b51226 |
depends = ['Modules/bsddb.h'],
|
|
|
1b51226 |
include_dirs = [ incdir ],
|
|
|
1b51226 |
library_dirs = [ libdir ],
|
|
|
1b51226 |
- runtime_library_dirs = [ libdir ],
|
|
|
425c7f6 |
+ runtime_library_dirs = [ libdir ] if libdir != sysconfig.get_config_var('LIBDIR') else [],
|
|
|
1b51226 |
libraries = libname,
|
|
|
1b51226 |
extra_link_args = lflags_arg,
|
|
|
1b51226 |
)],
|
|
|
1b51226 |
--
|
|
|
1b51226 |
2.35.1
|
|
|
1b51226 |
|