projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uqmi: use -ffunction-sections and --gc-sections, reduces binary size from 57k to 29k
[librecmc/librecmc.git]
/
package
/
network
/
utils
/
uqmi
/
Makefile
diff --git
a/package/network/utils/uqmi/Makefile
b/package/network/utils/uqmi/Makefile
index 18e0954ad256709ae5651b07ace45a873293a4ef..027fc0d1c2efb4a58cc9c37ae71f6fc8117a8c86 100644
(file)
--- a/
package/network/utils/uqmi/Makefile
+++ b/
package/network/utils/uqmi/Makefile
@@
-34,7
+34,9
@@
define Package/uqmi/description
endef
TARGET_CFLAGS += \
- -I$(STAGING_DIR)/usr/include
+ -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
+
+TARGET_LDFLAGS += -Wl,--gc-sections
CMAKE_OPTIONS += \
-DDEBUG=1