SHA256
1
0
forked from pool/crda

Accepting request 500820 from home:msmeissn:branches:hardware

- 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
This commit is contained in:
Ismail Dönmez 2017-06-06 10:34:04 +00:00 committed by Git OBS Bridge
parent 2411c8d64f
commit 7d358b929f
3 changed files with 41 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jun 3 09:30:42 UTC 2017 - meissner@suse.com
- adjust Makefile patch to not include CFLAGS on linker line,
this indirectly enables PIE support.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 25 09:27:14 UTC 2016 - martin.liska@suse.com Wed May 25 09:27:14 UTC 2016 - martin.liska@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package crda # spec file for package crda
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,6 +1,8 @@
--- crda-3.18/Makefile 2016-05-25 11:21:57.462831428 +0200 Index: crda-3.18/Makefile
+++ crda-3.18/Makefile 2014-12-11 00:51:29.000000000 +0100 ===================================================================
@@ -26,7 +26,7 @@ --- crda-3.18.orig/Makefile
+++ crda-3.18/Makefile
@@ -26,7 +26,7 @@ PUBKEY_DIR?=pubkeys
RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys
CFLAGS += -O2 -fpic CFLAGS += -O2 -fpic
@ -9,3 +11,32 @@
CFLAGS += -Wall -g CFLAGS += -Wall -g
LDLIBREG += -lreg LDLIBREG += -lreg
LDLIBS += $(LDLIBREG) 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)'