Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iproute2: honor COPTS; add missing include
CFLAGS has been passed 2 times, one from TARGET_CFLAGS in EXTRA_CCOPTS, the other from Makefile in PKG_BUILD_DIR. Fix this issue by adjusting flags' order and remove duplicated flags
- Loading branch information
1 parent
59a481f
commit 32d5166
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
package/network/utils/iproute2/patches/999-honor-copts.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -38,7 +38,7 @@ CCOPTS = -O2 $(EXTRA_CCOPTS) | ||
WFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes | ||
WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2 | ||
|
||
-CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS) | ||
+CFLAGS := $(WFLAGS) -I../include $(EXTRA_CCOPTS) $(DEFINES) $(CFLAGS) | ||
YACCFLAGS = -d -t -v | ||
|
||
SUBDIRS=lib ip tc bridge misc genl tipc man |