aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-04-29 11:33:40 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-04-29 11:33:40 +0000
commit074d1888974ae64e1bdaf4e46a8e7f967f2c2618 (patch)
tree801fe1c2c0883d15af756df47afb25417cd896c8
parent92606b55b47cb4b6ad025638171123a4c0193565 (diff)
downloadports-074d1888974ae64e1bdaf4e46a8e7f967f2c2618.tar.gz
ports-074d1888974ae64e1bdaf4e46a8e7f967f2c2618.zip
lang/gcc10: fix runtime on powerpc64le
It looks like this part was omitted during upstreaming. Its lack causes gcc to be compiled successfully, but fail at building simple programs: /usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__udivmodti4' /usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__ctzdi2' /usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__parityti2' /usr/local/bin/ld: /usr/local/lib/gcc10/libgcc_s.so: undefined reference to `.__enable_execute_stack'
-rw-r--r--lang/gcc10/files/patch-gcc_configure11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/gcc10/files/patch-gcc_configure b/lang/gcc10/files/patch-gcc_configure
new file mode 100644
index 000000000000..c83a180b248d
--- /dev/null
+++ b/lang/gcc10/files/patch-gcc_configure
@@ -0,0 +1,11 @@
+--- gcc/configure.orig 2021-04-29 10:19:44 UTC
++++ gcc/configure
+@@ -29405,7 +29405,7 @@ $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1"
+ esac
+
+ case "$target:$tm_file" in
+- powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
++ powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
+ case "$target" in
+ *le-*-linux*)
+ emul_name="-melf64lppc"