SHA256
1
0
forked from pool/Mesa
Mesa/u_remove-os-abi-tag.patch

73 lines
2.6 KiB
Diff

From 113326370fcc975af6d6fb5825728995fc8a6c70 Mon Sep 17 00:00:00 2001
From: Tobias Klausmann <tobias.klausmann@mni.thm.de>
Date: Fri, 19 Oct 2012 22:46:21 +0200
Subject: [PATCH] Subject: Remove OS ABI tag from libGL, so it is no longer
preferred over libGLs without OS ABI tag References:
bnc#765294, fdo#26663
Original Author: Stefan Dirsch <sndirsch@suse.de>
changed for Mesa 9.1
---
src/mapi/glapi/gen/gl_x86-64_asm.py | 2 +-
src/mapi/glapi/gen/gl_x86_asm.py | 2 +-
src/mapi/mapi/entry_x86-64_tls.h | 2 +-
src/mapi/mapi/entry_x86_tls.h | 2 +-
4 Dateien geändert, 4 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-)
diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py
index a3548c2..edfc548 100644
--- a/src/mapi/glapi/gen/gl_x86-64_asm.py
+++ b/src/mapi/glapi/gen/gl_x86-64_asm.py
@@ -181,7 +181,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
def printRealFooter(self):
print ''
- print '#if defined(GLX_USE_TLS) && defined(__linux__)'
+ print '#if 0 && defined(__linux__)'
print ' .section ".note.ABI-tag", "a"'
print ' .p2align 2'
print ' .long 1f - 0f /* name length */'
diff --git a/src/mapi/glapi/gen/gl_x86_asm.py b/src/mapi/glapi/gen/gl_x86_asm.py
index 8b0f6ee..7e8105c 100644
--- a/src/mapi/glapi/gen/gl_x86_asm.py
+++ b/src/mapi/glapi/gen/gl_x86_asm.py
@@ -189,7 +189,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
print '\t\tALIGNTEXT16'
print 'GLNAME(gl_dispatch_functions_end):'
print ''
- print '#if defined(GLX_USE_TLS) && defined(__linux__)'
+ print '#if 0 && defined(__linux__)'
print ' .section ".note.ABI-tag", "a"'
print ' .p2align 2'
print ' .long 1f - 0f /* name length */'
diff --git a/src/mapi/mapi/entry_x86-64_tls.h b/src/mapi/mapi/entry_x86-64_tls.h
index 72d4125..06d4b3d 100644
--- a/src/mapi/mapi/entry_x86-64_tls.h
+++ b/src/mapi/mapi/entry_x86-64_tls.h
@@ -28,7 +28,7 @@
#include "u_macros.h"
-#ifdef __linux__
+#ifdef opensuse_dontbuild
__asm__(".section .note.ABI-tag, \"a\"\n\t"
".p2align 2\n\t"
".long 1f - 0f\n\t" /* name length */
diff --git a/src/mapi/mapi/entry_x86_tls.h b/src/mapi/mapi/entry_x86_tls.h
index de91812..a38d9a0 100644
--- a/src/mapi/mapi/entry_x86_tls.h
+++ b/src/mapi/mapi/entry_x86_tls.h
@@ -29,7 +29,7 @@
#include <string.h>
#include "u_macros.h"
-#ifdef __linux__
+#ifdef opensuse_dontbuild
__asm__(".section .note.ABI-tag, \"a\"\n\t"
".p2align 2\n\t"
".long 1f - 0f\n\t" /* name length */
--
1.7.10.4