aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/python3/0010-dont-skip-rpath.patch
blob: 610f4a5e540dd86d4f6a7278dac173e7c87fda75 (plain)
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
29
30
31
From f7439eae9b2f8d91b6689efbf01292a044f3a3fe Mon Sep 17 00:00:00 2001
From: Osyotr <Osyotr@users.noreply.github.com>
Date: Thu, 4 Aug 2022 23:49:06 +0300
Subject: [PATCH 10/11] dont skip rpath

---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 61b3266..4c2cfb4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,14 @@  [$1]
 [RESTORE_ENV]
 )dnl
 
+if test "$ac_sys_system" != "Darwin"; then
+AS_VAR_IF([GNULD], [yes], [
+  LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags,-rpath,$vcpkg_rpath"
+], [
+  LDFLAGS="$LDFLAGS -Wl,-rpath,$vcpkg_rpath"
+])
+fi
+
 dnl PY_CHECK_FUNC(FUNCTION, [INCLUDES], [AC_DEFINE-VAR])
 AC_DEFUN([PY_CHECK_FUNC],
 [ AS_VAR_PUSHDEF([py_var], [ac_cv_func_$1])
-- 
2.37.3.windows.1