gcc: fixing relocation errors in libgomp dependants. fixes #3924
This commit is contained in:
parent
a995d0bd7f
commit
75fe6cb049
2 changed files with 52 additions and 1 deletions
srcpkgs/gcc
51
srcpkgs/gcc/patches/0016-invalid_tls_model.diff
Normal file
51
srcpkgs/gcc/patches/0016-invalid_tls_model.diff
Normal file
|
@ -0,0 +1,51 @@
|
|||
--- ./libgomp/configure.tgt.orig 2018-09-25 13:44:16.654561098 -0400
|
||||
+++ ./libgomp/configure.tgt 2018-09-25 13:44:50.452688100 -0400
|
||||
@@ -10,23 +10,6 @@
|
||||
# XCFLAGS Add extra compile flags to use.
|
||||
# XLDFLAGS Add extra link flags to use.
|
||||
|
||||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation.
|
||||
-if test $gcc_cv_have_tls = yes ; then
|
||||
- case "${target}" in
|
||||
-
|
||||
- *-*-k*bsd*-gnu*)
|
||||
- ;;
|
||||
-
|
||||
- *-*-linux* | *-*-gnu*)
|
||||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
|
||||
- ;;
|
||||
-
|
||||
- *-*-rtems*)
|
||||
- XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
|
||||
- ;;
|
||||
- esac
|
||||
-fi
|
||||
-
|
||||
# Since we require POSIX threads, assume a POSIX system by default.
|
||||
config_path="posix"
|
||||
|
||||
--- ./libitm/configure.tgt.orig 2018-09-25 13:47:31.019296903 -0400
|
||||
+++ ./libitm/configure.tgt 2018-09-25 13:47:37.676322335 -0400
|
||||
@@ -27,22 +27,6 @@
|
||||
# XCFLAGS Add extra compile flags to use.
|
||||
# XLDFLAGS Add extra link flags to use.
|
||||
|
||||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation.
|
||||
-if test "$gcc_cv_have_tls" = yes ; then
|
||||
- case "${target}" in
|
||||
-
|
||||
- # For x86, we use slots in the TCB head for most of our TLS.
|
||||
- # The setup of those slots in beginTransaction can afford to
|
||||
- # use the global-dynamic model.
|
||||
- i[456]86-*-linux* | x86_64-*-linux*)
|
||||
- ;;
|
||||
-
|
||||
- *-*-linux*)
|
||||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
|
||||
- ;;
|
||||
- esac
|
||||
-fi
|
||||
-
|
||||
# Map the target cpu to an ARCH sub-directory. At the same time,
|
||||
# work out any special compilation flags as necessary.
|
||||
case "${target_cpu}" in
|
|
@ -7,7 +7,7 @@ _isl_version=0.19
|
|||
|
||||
pkgname=gcc
|
||||
version=${_majorver}.0
|
||||
revision=3
|
||||
revision=4
|
||||
short_desc="The GNU C Compiler"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
homepage="http://gcc.gnu.org"
|
||||
|
|
Loading…
Reference in a new issue