projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8edcb82
)
iw: compile with LTO enabled
author
Felix Fietkau
<
[email protected]
>
Wed, 11 Jul 2018 17:21:08 +0000
(19:21 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Tue, 18 Dec 2018 16:32:20 +0000
(17:32 +0100)
Reduces .ipk size on MIPS from 34k to 33k
Signed-off-by: Felix Fietkau <
[email protected]
>
(backported from
ef16a394d2b24a363b50b5b4720cb23fe156c9da
)
package/network/utils/iw/Makefile
patch
|
blob
|
history
diff --git
a/package/network/utils/iw/Makefile
b/package/network/utils/iw/Makefile
index a11768268c430f3ecae339b676d4ff5a46810b89..ef39ee6724f54c6aa6125dcb5efc84e673d6cfe0 100644
(file)
--- a/
package/network/utils/iw/Makefile
+++ b/
package/network/utils/iw/Makefile
@@
-47,7
+47,8
@@
TARGET_CPPFLAGS:= \
-I$(STAGING_DIR)/usr/include/libnl-tiny \
$(TARGET_CPPFLAGS) \
-DCONFIG_LIBNL20 \
- -D_GNU_SOURCE
+ -D_GNU_SOURCE \
+ -flto
ifeq ($(BUILD_VARIANT),full)
TARGET_CPPFLAGS += -DIW_FULL
@@
-56,7
+57,7
@@
endif
MAKE_FLAGS += \
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
- LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections" \
+ LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections
-flto
" \
NL1FOUND="" NL2FOUND=Y \
NLLIBNAME="libnl-tiny" \
LIBS="-lm -lnl-tiny" \