x11-libs/libGLw: Fix for -fno-common
authorDavid Seifert <soap@gentoo.org>
Mon, 10 Feb 2020 12:52:31 +0000 (13:52 +0100)
committerDavid Seifert <soap@gentoo.org>
Mon, 10 Feb 2020 12:52:31 +0000 (13:52 +0100)
Closes: https://bugs.gentoo.org/706600
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
x11-libs/libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch [new file with mode: 0644]
x11-libs/libGLw/libGLw-8.0.0-r1.ebuild [moved from x11-libs/libGLw/libGLw-8.0.0.ebuild with 87% similarity]

diff --git a/x11-libs/libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch b/x11-libs/libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch
new file mode 100644 (file)
index 0000000..ad02532
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/GLwDrawA.h
++++ b/GLwDrawA.h
+@@ -136,7 +136,7 @@
+ typedef struct _GLwMDrawingAreaClassRec       *GLwMDrawingAreaWidgetClass;
+ typedef struct _GLwMDrawingAreaRec    *GLwMDrawingAreaWidget;
+-GLAPI WidgetClass glwMDrawingAreaWidgetClass;
++extern GLAPI WidgetClass glwMDrawingAreaWidgetClass;
+ #else 
+@@ -144,7 +144,7 @@
+ typedef struct _GLwDrawingAreaClassRec        *GLwDrawingAreaWidgetClass;
+ typedef struct _GLwDrawingAreaRec     *GLwDrawingAreaWidget;
+-GLAPI WidgetClass glwDrawingAreaWidgetClass;
++extern GLAPI WidgetClass glwDrawingAreaWidgetClass;
+ #endif
similarity index 87%
rename from x11-libs/libGLw/libGLw-8.0.0.ebuild
rename to x11-libs/libGLw/libGLw-8.0.0-r1.ebuild
index 94fc2c6d16f30e1004bf8d527c87e7ba6eed7699..202de4da9755be5eb327aee9bae529ea3475372d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -25,6 +25,8 @@ BDEPEND="virtual/pkgconfig"
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=( "${FILESDIR}"/${P}-gcc10-fno-common.patch )
+
 src_configure() {
        econf \
                --disable-static \