diff options
author | Sam James <sam@gentoo.org> | 2022-06-14 13:54:01 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-14 13:54:06 +0100 |
commit | e867e1dbccb2d262f613d5cba268672e548480af (patch) | |
tree | 60924e46eca00a4f2b6c2f49130adabe7dfec052 /net-wireless | |
parent | net-wireless/rtl-sdr: fix libdir in .pc (diff) | |
download | gentoo-e867e1dbccb2d262f613d5cba268672e548480af.tar.gz gentoo-e867e1dbccb2d262f613d5cba268672e548480af.tar.bz2 gentoo-e867e1dbccb2d262f613d5cba268672e548480af.zip |
net-wireless/dump1090: fix build with lld
Closes: https://bugs.gentoo.org/831403
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/dump1090/dump1090-6.1.ebuild | 6 | ||||
-rw-r--r-- | net-wireless/dump1090/files/dump1090-6.1-libdir.patch | 16 |
2 files changed, 21 insertions, 1 deletions
diff --git a/net-wireless/dump1090/dump1090-6.1.ebuild b/net-wireless/dump1090/dump1090-6.1.ebuild index 04ee546dcf91..0d8aaf94604b 100644 --- a/net-wireless/dump1090/dump1090-6.1.ebuild +++ b/net-wireless/dump1090/dump1090-6.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -28,6 +28,10 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${PN}-6.1-libdir.patch +) + src_prepare() { default sed -i -e '/CFLAGS/s# -O3 -g -Wall -Wmissing-declarations -Werror -W # #' Makefile || die diff --git a/net-wireless/dump1090/files/dump1090-6.1-libdir.patch b/net-wireless/dump1090/files/dump1090-6.1-libdir.patch new file mode 100644 index 000000000000..b55fa95d2ea3 --- /dev/null +++ b/net-wireless/dump1090/files/dump1090-6.1-libdir.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile b/Makefile +index d4a5ff6..5d69505 100644 +--- a/Makefile ++++ b/Makefile +@@ -99,9 +99,9 @@ ifeq ($(RTLSDR), yes) + ifdef RTLSDR_PREFIX + CPPFLAGS += -I$(RTLSDR_PREFIX)/include + ifeq ($(STATIC), yes) +- LIBS_SDR += -L$(RTLSDR_PREFIX)/lib -Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic $(LIBS_USB) ++ LIBS_SDR += -Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic $(LIBS_USB) + else +- LIBS_SDR += -L$(RTLSDR_PREFIX)/lib -lrtlsdr $(LIBS_USB) ++ LIBS_SDR += -lrtlsdr $(LIBS_USB) + endif + else + # some packaged .pc files are massively broken, try to handle it |