[arch-commits] CVS update of core/base/gcc-libs (PKGBUILD libgomp-dlopen-fix.patch)
Jan de Groot
jgc at archlinux.org
Wed Sep 19 19:54:42 UTC 2007
Date: Wednesday, September 19, 2007 @ 15:54:41
Author: jgc
Path: /home/cvs-core/core/base/gcc-libs
Added: libgomp-dlopen-fix.patch (1.1)
Modified: PKGBUILD (1.1 -> 1.2)
upgpkg: gcc-libs 4.2.1-2
Make it possible to dlopen() libgomp.so
--------------------------+
PKGBUILD | 11 +++++++----
libgomp-dlopen-fix.patch | 17 +++++++++++++++++
2 files changed, 24 insertions(+), 4 deletions(-)
Index: core/base/gcc-libs/PKGBUILD
diff -u core/base/gcc-libs/PKGBUILD:1.1 core/base/gcc-libs/PKGBUILD:1.2
--- core/base/gcc-libs/PKGBUILD:1.1 Sat Sep 15 08:44:12 2007
+++ core/base/gcc-libs/PKGBUILD Wed Sep 19 15:54:41 2007
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD,v 1.1 2007/09/15 12:44:12 jgc Exp $
+# $Id: PKGBUILD,v 1.2 2007/09/19 19:54:41 jgc Exp $
# Maintainer: Jan de Groot <jgc at archlinux.org>
pkgname=gcc-libs
pkgver=4.2.1
-pkgrel=1
+pkgrel=2
#_snapshot=4.2.1-RC-20070703
pkgdesc="Runtime libraries shipped by GCC for C and C++ languages"
arch=(i686 x86_64)
@@ -15,11 +15,13 @@
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2
#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++}-${_snapshot}.tar.bz2
gcc_pure64.patch
- gcc-hash-style-both.patch)
+ gcc-hash-style-both.patch
+ libgomp-dlopen-fix.patch)
md5sums=('88007169104d247eccb07dc5de2e0137'
'0aca4ef04eb57d9f356c431496bdad0b'
'8fc86e4c4d1f4ec8b226307d39fbd9e3'
- '611fbd749019f0ce2fad36fda17e93dd')
+ '611fbd749019f0ce2fad36fda17e93dd'
+ 'ccb143ce1f8a09d5ffa9cf0a39ba4a78')
build() {
if ! locale -a | grep ^de_DE; then
@@ -36,6 +38,7 @@
patch -Np1 -i ../gcc_pure64.patch || return 1
fi
patch -Np0 -i ${startdir}/src/gcc-hash-style-both.patch || return 1
+ patch -Np1 -i ${startdir}/src/libgomp-dlopen-fix.patch || return 1
# Don't run fixincludes
sed -i -e 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
Index: core/base/gcc-libs/libgomp-dlopen-fix.patch
diff -u /dev/null core/base/gcc-libs/libgomp-dlopen-fix.patch:1.1
--- /dev/null Wed Sep 19 15:54:41 2007
+++ core/base/gcc-libs/libgomp-dlopen-fix.patch Wed Sep 19 15:54:41 2007
@@ -0,0 +1,17 @@
+--- trunk/libgomp/configure.tgt 2007/05/04 19:20:28 124444
++++ trunk/libgomp/configure.tgt 2007/05/04 19:21:18 124445
+@@ -11,14 +11,11 @@
+ # XLDFLAGS Add extra link flags to use.
+
+ # Optimize TLS usage by avoiding the overhead of dynamic allocation.
+-# This does require that the library be present during process
+-# startup, so mark the library as not to be dlopened.
+ if test $have_tls = yes ; then
+ case "${target}" in
+
+ *-*-linux*)
+ XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
+- XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen"
+ ;;
+ esac
+ fi
More information about the arch-commits
mailing list