summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-04-30 00:04:55 +0100
committerSam James <sam@gentoo.org>2021-05-04 22:17:12 +0000
commit0e447f8ce622c2aa8af0edc96f3a9fec85746fa0 (patch)
tree912978766ace387e3b0a988a0c2579acddc4257b /net-wireless/bss/files
parentnet-misc/udpxy: Respect CFLAGS (diff)
downloadgentoo-0e447f8ce622c2aa8af0edc96f3a9fec85746fa0.tar.gz
gentoo-0e447f8ce622c2aa8af0edc96f3a9fec85746fa0.tar.bz2
gentoo-0e447f8ce622c2aa8af0edc96f3a9fec85746fa0.zip
net-wireless/bss: Respect CFLAGS
Closes: https://bugs.gentoo.org/725228 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-wireless/bss/files')
-rw-r--r--net-wireless/bss/files/bss-0.8-Makefile.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-wireless/bss/files/bss-0.8-Makefile.patch b/net-wireless/bss/files/bss-0.8-Makefile.patch
new file mode 100644
index 000000000000..6238ea6ae912
--- /dev/null
+++ b/net-wireless/bss/files/bss-0.8-Makefile.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/725228
+--- a/Makefile
++++ b/Makefile
+@@ -2,12 +2,10 @@
+ # Pierre BETOUIN <pierre.betouin@security-labs.org>
+ # Modification Ollie Whitehouse <ol at uncon dot org>
+
+-CC=gcc
+-MAKE=make
+-CFLAGS=-Wall
++CFLAGS += -Wall
+
+-BINDIR=/usr/local/bin
+-ETCDIR=/usr/local/etc
++BINDIR=/usr/bin
++ETCDIR=/usr/etc
+
+ BSS_OBJ=bss
+ BSS_SRC=bss.c
+@@ -22,10 +20,10 @@ BSS_LIBS=-lbluetooth
+ all: $(BSS_OBJ)
+
+ $(BSS_OBJ): $(BSS_SRC) $(BSS_INC)
+- $(CC) -c $(BSS_SRC)
+- $(CC) -c $(L2P_SRC)
+- $(CC) -c $(REP_SRC)
+- $(CC) $(BSS_TMP) $(L2P_TMP) $(REP_TMP) -o $(BSS_OBJ) $(CFLAGS) $(BSS_FLAGS) $(BSS_LIBS)
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $(BSS_SRC)
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $(L2P_SRC)
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $(REP_SRC)
++ $(CC) $(LDFLAGS) $(BSS_TMP) $(L2P_TMP) $(REP_TMP) -o $(BSS_OBJ) $(CFLAGS) $(BSS_LIBS)
+
+ install:
+ strip $(BSS_OBJ)