commit: 09d29bd3284b92b6796f901c59c1ed8a80dead70 Author: Adam Feldman <NP-Hardass <AT> gentoo <DOT> org> AuthorDate: Thu Sep 3 15:22:26 2020 +0000 Commit: Adam Feldman <np-hardass <AT> gentoo <DOT> org> CommitDate: Thu Sep 3 15:23:11 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d29bd3
x11-misc/primus: Use LDFLAGS Closes: https://bugs.gentoo.org/740198 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org> .../primus/files/primus-0.2-respect-ldflags.patch | 19 +++++++++++++++++++ .../{primus-0.2-r1.ebuild => primus-0.2-r2.ebuild} | 5 ++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/x11-misc/primus/files/primus-0.2-respect-ldflags.patch b/x11-misc/primus/files/primus-0.2-respect-ldflags.patch new file mode 100644 index 00000000000..5d980451743 --- /dev/null +++ b/x11-misc/primus/files/primus-0.2-respect-ldflags.patch @@ -0,0 +1,19 @@ +From b4663367d16190cf57b632cd59425b1b8b43f2f3 Mon Sep 17 00:00:00 2001 +From: Vincent Cheng <[email protected]> +Date: Sat, 25 Jul 2015 21:10:10 -0700 +Subject: [PATCH] build with LDFLAGS defined by environment + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index ab37e6e..a83e465 100644 +--- a/Makefile ++++ b/Makefile +@@ -30,4 +30,4 @@ CXXFLAGS += -DPRIMUS_libGLd='"$(PRIMUS_libGLd)"' + + $(LIBDIR)/libGL.so.1: libglfork.cpp + mkdir -p $(LIBDIR) +- $(CXX) $(CPPFLAGS) $(CXXFLAGS) -fvisibility=hidden -fPIC -shared -Wl,-Bsymbolic -o $@ $< -lX11 -lpthread -lrt ++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -fvisibility=hidden -fPIC -shared -Wl,-Bsymbolic -o $@ $< $(LDFLAGS) -lX11 -lpthread -lrt diff --git a/x11-misc/primus/primus-0.2-r1.ebuild b/x11-misc/primus/primus-0.2-r2.ebuild similarity index 93% rename from x11-misc/primus/primus-0.2-r1.ebuild rename to x11-misc/primus/primus-0.2-r2.ebuild index b17cd30fb64..a25dcfebb0f 100644 --- a/x11-misc/primus/primus-0.2-r1.ebuild +++ b/x11-misc/primus/primus-0.2-r2.ebuild @@ -21,7 +21,10 @@ RDEPEND=" " DEPEND="virtual/opengl" -PATCHES=( "${FILESDIR}/primus-0.2-libglvnd-workaround.patch" ) +PATCHES=( + "${FILESDIR}/primus-0.2-libglvnd-workaround.patch" + "${FILESDIR}/primus-0.2-respect-ldflags.patch" +) src_prepare() { default
