media-libs/quarter: fix GL underlinking, bug #369967
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 27 Aug 2016 16:27:48 +0000 (17:27 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 27 Aug 2016 16:27:48 +0000 (17:27 +0100)
Before the change shared library had undefined
glEnable() symbol. Easy to test as:
    $ LDFLAGS="-Wl,--no-undefined" emerge -1 quarter
    .libs/libQuarter_la-QuarterWidget.o: In function `SIM::Coin3D::Quarter::QuarterWidget::initializeGL()':
    QuarterWidget.cpp:(.text+0xac6): undefined reference to `glEnable'

Reported-by: Diego Elio Pettenò
Bug: https://bugs.gentoo.org/show_bug.cgi?id=369967

Package-Manager: portage-2.3.0

media-libs/quarter/quarter-1.0.0-r1.ebuild

index 4d863b3a852eaa9321bbd9a25805f31a1e9c8134..e6e370acaa41bc43a71461fff7686961b13b9eff 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit autotools-utils
+inherit autotools-utils flag-o-matic
 
 MY_P="${P/q/Q}"
 
@@ -23,6 +23,7 @@ RDEPEND="
        dev-qt/qtcore:4
        dev-qt/qtgui:4
        dev-qt/qtopengl:4
+       virtual/opengl
 "
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -38,6 +39,8 @@ PATCHES=(
 DOCS=(AUTHORS NEWS README)
 
 src_configure() {
+       append-libs -lGL #369967, library calls glEnable()
+
        local myeconfargs=(
                htmldir="${ROOT}usr/share/doc/${PF}/html"
                --enable-pkgconfig