1
0

patch-Makefile 981 B

123456789101112131415161718192021222324252627282930
  1. - allow variables to be overridden
  2. - allow passing TARGET_CFLAGS
  3. overriding CCOPTS instead wont work, as this variable is being
  4. used to compile host-utils in netem/
  5. - define LIBUTIL for misc/ss to compile correctly
  6. --- iproute2-2.6.37.orig/Makefile 2011-01-07 18:54:30.000000000 +0100
  7. +++ iproute2-2.6.37/Makefile 2011-01-18 02:19:41.379921947 +0100
  8. @@ -27,10 +27,10 @@ ADDLIB+=dnet_ntop.o dnet_pton.o
  9. #options for ipx
  10. ADDLIB+=ipx_ntop.o ipx_pton.o
  11. -CC = gcc
  12. -HOSTCC = gcc
  13. -CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
  14. -CFLAGS = $(CCOPTS) -I../include $(DEFINES)
  15. +CC := gcc
  16. +HOSTCC := gcc
  17. +CCOPTS ?= -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
  18. +CFLAGS = $(CCOPTS) -I../include $(DEFINES) ${TARGET_CFLAGS}
  19. YACCFLAGS = -d -t -v
  20. LDLIBS += -L../lib -lnetlink -lutil
  21. @@ -38,6 +38,7 @@ LDLIBS += -L../lib -lnetlink -lutil
  22. SUBDIRS=lib ip tc misc netem genl
  23. LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
  24. +LIBUTIL=../lib/libutil.a
  25. all: Config
  26. @set -e; \