7d358b929f
- adjust Makefile patch to not include CFLAGS on linker line, this indirectly enables PIE support. OBS-URL: https://build.opensuse.org/request/show/500820 OBS-URL: https://build.opensuse.org/package/show/hardware/crda?expand=0&rev=31
43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
Index: crda-3.18/Makefile
|
|
===================================================================
|
|
--- crda-3.18.orig/Makefile
|
|
+++ crda-3.18/Makefile
|
|
@@ -26,7 +26,7 @@ PUBKEY_DIR?=pubkeys
|
|
RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys
|
|
|
|
CFLAGS += -O2 -fpic
|
|
-CFLAGS += -std=gnu99 -Wall -Werror -pedantic
|
|
+CFLAGS += -std=gnu99 -Wall -Werror -Wno-unused-const-variable -pedantic
|
|
CFLAGS += -Wall -g
|
|
LDLIBREG += -lreg
|
|
LDLIBS += $(LDLIBREG)
|
|
@@ -135,23 +135,23 @@ install-libreg:
|
|
|
|
crda: crda.o
|
|
$(NQ) ' LD ' $@
|
|
- $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(NLLIBS)
|
|
+ $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(NLLIBS)
|
|
|
|
regdbdump: regdbdump.o
|
|
$(NQ) ' LD ' $@
|
|
- $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
+ $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
intersect: intersect.o
|
|
$(NQ) ' LD ' $@
|
|
- $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
+ $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
db2rd: db2rd.o
|
|
$(NQ) ' LD ' $@
|
|
- $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
+ $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
optimize: optimize.o
|
|
$(NQ) ' LD ' $@
|
|
- $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
+ $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
verify: $(REG_BIN) regdbdump
|
|
$(NQ) ' CHK $(REG_BIN)'
|