summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Beddek <telans@posteo.de>2021-10-16 12:46:49 +1300
committerSam James <sam@gentoo.org>2021-10-16 02:27:49 +0100
commit17f4add4b38825117a0661f1d151dfadffe4e7f6 (patch)
treef79b2c7b55e78b75e16f602c433e6b1699f95f24 /net-wireless
parentmedia-video/handbrake: sync live ebuild (diff)
downloadgentoo-17f4add4b38825117a0661f1d151dfadffe4e7f6.tar.gz
gentoo-17f4add4b38825117a0661f1d151dfadffe4e7f6.tar.bz2
gentoo-17f4add4b38825117a0661f1d151dfadffe4e7f6.zip
net-wireless/crda: update ldflags patch to fix Clang build
Closes: https://bugs.gentoo.org/596352 Signed-off-by: James Beddek <telans@posteo.de> Closes: https://github.com/gentoo/gentoo/pull/22594 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/crda/files/crda-ldflags.patch17
1 files changed, 12 insertions, 5 deletions
diff --git a/net-wireless/crda/files/crda-ldflags.patch b/net-wireless/crda/files/crda-ldflags.patch
index 5ba9165c7adc..13592127e928 100644
--- a/net-wireless/crda/files/crda-ldflags.patch
+++ b/net-wireless/crda/files/crda-ldflags.patch
@@ -1,11 +1,18 @@
---- /Makefile
-+++ /Makefile
-@@ -115,7 +115,7 @@
+# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/patch/?id=9856751feaf7b102547cea678a5da6c94252d83d
+# https://bugs.gentoo.org/678450
+# https://bugs.gentoo.org/596352
+
+--- a/Makefile
++++ b/Makefile
+@@ -114,9 +114,9 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
+ $(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem)
+ $(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@
- $(LIBREG): regdb.h reglib.h reglib.c
+-$(LIBREG): regdb.h reglib.h reglib.c
++$(LIBREG): reglib.c regdb.h reglib.h
$(NQ) ' CC ' $@
- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(filter-out -lreg,$(LDLIBS))
-+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(filter-out -lreg,$(LDLIBS))
++ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(filter-out -lreg,$(LDLIBS))
install-libreg-headers:
$(NQ) ' INSTALL libreg-headers'