patch-Makefile 985 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.29-1.orig/Makefile 2009-03-24 23:40:54.000000000 +0100
  7. +++ iproute2-2.6.29-1/Makefile 2009-11-25 08:59:58.000000000 +0100
  8. @@ -20,10 +20,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. @@ -31,6 +31,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; \