cross/gcc-*: add missing patch file
I forgot to add it with the last commit, sorry for that.
This commit is contained in:
parent
81b184522a
commit
9b4435bcd0
3 changed files with 75 additions and 0 deletions
25
cross/gcc-aarch64/0016-invalid_tls_model.patch
Normal file
25
cross/gcc-aarch64/0016-invalid_tls_model.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- ./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"
|
25
cross/gcc-armhf/0016-invalid_tls_model.patch
Normal file
25
cross/gcc-armhf/0016-invalid_tls_model.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- ./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"
|
25
cross/gcc-armv7/0016-invalid_tls_model.patch
Normal file
25
cross/gcc-armv7/0016-invalid_tls_model.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- ./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"
|
Loading…
Reference in a new issue