Skip to content

Commit 016d223

Browse files
committed
Merge pull request #656 from hashdist/gcc3
Update the patch (move the rpath one line down)
2 parents ef04391 + 8463ec0 commit 016d223

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

pkgs/gcc/rpath.patch

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
diff --git a/gcc/config/i386/gnu-user.h b/gcc/config/i386/gnu-user.h
2-
index e1163c9..dc09728 100644
2+
index e1163c9..b881ce2 100644
33
--- a/gcc/config/i386/gnu-user.h
44
+++ b/gcc/config/i386/gnu-user.h
5-
@@ -79,6 +79,7 @@ along with GCC; see the file COPYING3. If not see
5+
@@ -79,7 +79,8 @@ along with GCC; see the file COPYING3. If not see
66
%{!static: \
77
%{rdynamic:-export-dynamic} \
88
-dynamic-linker %(dynamic_linker)} \
9-
+ -rpath @@ARTIFACT@@/lib \
10-
%{static:-static}}"
9+
- %{static:-static}}"
10+
+ %{static:-static}} \
11+
+ -rpath @@ARTIFACT@@/lib"
1112

1213
#undef LINK_SPEC
14+
#define LINK_SPEC GNU_USER_TARGET_LINK_SPEC
1315
diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h
14-
index 1c72b41..457639b 100644
16+
index 1c72b41..07894ad 100644
1517
--- a/gcc/config/i386/gnu-user64.h
1618
+++ b/gcc/config/i386/gnu-user64.h
17-
@@ -63,6 +63,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
19+
@@ -63,7 +63,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
1820
%{" SPEC_32 ":-dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "} \
1921
%{" SPEC_64 ":-dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "} \
2022
%{" SPEC_X32 ":-dynamic-linker " GNU_USER_DYNAMIC_LINKERX32 "}} \
21-
+ -rpath @@ARTIFACT@@/lib \
22-
%{static:-static}}"
23+
- %{static:-static}}"
24+
+ %{static:-static}} \
25+
+ -rpath @@ARTIFACT@@/lib"
2326

2427
#undef LINK_SPEC
28+
#define LINK_SPEC GNU_USER_TARGET_LINK_SPEC

0 commit comments

Comments
 (0)