From 58f7f2768edbe534473ceb91b91f847f648c0029 Mon Sep 17 00:00:00 2001 From: Rmys Date: Fri, 21 Sep 2018 11:31:06 +0300 Subject: [PATCH] wireless-tools:rebuild --- .../wireless-tools/files/wireless_tools.diff | 30 +++++++++++++++++++ system/base/wireless-tools/pspec.xml | 8 +++++ 2 files changed, 38 insertions(+) create mode 100644 system/base/wireless-tools/files/wireless_tools.diff diff --git a/system/base/wireless-tools/files/wireless_tools.diff b/system/base/wireless-tools/files/wireless_tools.diff new file mode 100644 index 00000000..06a2b939 --- /dev/null +++ b/system/base/wireless-tools/files/wireless_tools.diff @@ -0,0 +1,30 @@ +--- Makefile ++++ Makefile +@@ -19,7 +19,7 @@ + ## a local version (non-root). + ## Standard distros should comment that option to save space and to + ## build libiw.so used by third parties... +-BUILD_STATIC = y ++#BUILD_STATIC = y + + ## Uncomment this to build without using libm (less efficient). + ## This is mostly useful for embedded platforms without maths. +@@ -105,7 +105,7 @@ + + # Other flags + CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \ +- -Wpointer-arith -Wcast-qual -Winline -I. ++ -Wpointer-arith -Wcast-qual -Winline -I. $(RPM_OPT_FLAGS) -fno-strict-aliasing + #CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I. + DEPFLAGS=-MMD + XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG) +@@ -121,6 +121,9 @@ + %.so: %.c wireless.h + $(CC) $(XCFLAGS) $(PICFLAG) -c -o $@ $< + ++iwlib.o: iwlib.c ++ $(CC) $(XCFLAGS) $(PICFLAG) -c -o $@ $< ++ + iwconfig: iwconfig.o $(IWLIB) + + iwlist: iwlist.o $(IWLIB) diff --git a/system/base/wireless-tools/pspec.xml b/system/base/wireless-tools/pspec.xml index b685348b..134beb62 100644 --- a/system/base/wireless-tools/pspec.xml +++ b/system/base/wireless-tools/pspec.xml @@ -17,6 +17,7 @@ no-ldconfig.patch wireless_tools.27-wireless-man-upd.patch wireless-tools-29-makefile.patch + wireless_tools.diff @@ -49,6 +50,13 @@ + + 2018-09-21 + 30 + Rebuild + Mustafa Cinasal + muscnsl@gmail.com + 2018-07-15 30