summaryrefslogtreecommitdiff
path: root/lang/gcc5/patches/patch-libcilkrts_configure
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc5/patches/patch-libcilkrts_configure')
-rw-r--r--lang/gcc5/patches/patch-libcilkrts_configure13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/gcc5/patches/patch-libcilkrts_configure b/lang/gcc5/patches/patch-libcilkrts_configure
new file mode 100644
index 00000000000..7ab3c7244c2
--- /dev/null
+++ b/lang/gcc5/patches/patch-libcilkrts_configure
@@ -0,0 +1,13 @@
+$NetBSD: patch-libcilkrts_configure,v 1.1 2015/07/16 12:03:36 ryoon Exp $
+
+--- libcilkrts/configure.orig 2014-08-12 11:06:44.000000000 +0000
++++ libcilkrts/configure
+@@ -14519,7 +14519,7 @@ esac
+ CFLAGS="$save_CFLAGS"
+
+ if test $enable_shared = yes; then
+- link_cilkrts="-lcilkrts %{static: $LIBS}"
++ link_cilkrts="-rpath ${PREFIX}/gcc50snapshot/lib --as-needed -lgcc_s -lcilkrts %{static $LIBS}"
+ else
+ link_cilkrts="-lcilkrts $LIBS"
+ fi