patch-Makefile 754 B

12345678910111213141516171819202122
  1. --- iproute2-4.1.0.orig/Makefile 2015-06-26 21:28:25.000000000 +0200
  2. +++ iproute2-4.1.0/Makefile 2015-06-29 20:01:56.000000000 +0200
  3. @@ -29,16 +29,16 @@ ADDLIB+=ipx_ntop.o ipx_pton.o
  4. #options for mpls
  5. ADDLIB+=mpls_ntop.o mpls_pton.o
  6. -CC = gcc
  7. +CC ?= gcc
  8. HOSTCC = gcc
  9. DEFINES += -D_GNU_SOURCE
  10. # Turn on transparent support for LFS
  11. DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
  12. -CCOPTS = -O2
  13. WFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes
  14. WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
  15. -CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS)
  16. +CFLAGS ?=
  17. +CFLAGS += $(WFLAGS) -I../include $(DEFINES)
  18. YACCFLAGS = -d -t -v
  19. SUBDIRS=lib ip tc bridge misc netem genl tipc man