From 23153b00979f7e0e6b1dee395db7215185ba501b Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Wed, 25 Nov 2009 19:35:55 +0100
Subject: add new taget alix2d

- tested via nfs boot
- fix dansguardian zlib dependency
---
 package/iproute2/Makefile               | 10 ++++++----
 package/iproute2/patches/patch-Makefile |  4 ++--
 2 files changed, 8 insertions(+), 6 deletions(-)

(limited to 'package/iproute2')

diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile
index 5195693c0..6dcc3947a 100644
--- a/package/iproute2/Makefile
+++ b/package/iproute2/Makefile
@@ -35,11 +35,13 @@ $(eval $(call PKG_template,ROUTEL,routel,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEP
 $(eval $(call PKG_template,RTMON,rtmon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_RTMON},${PKG_DESCR_RTMON},${PKG_SECTION}))
 $(eval $(call PKG_template,SS,ss,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_SS},${PKG_DESCR_SS},${PKG_SECTION}))
 
-CONFIGURE_STYLE=	gnu
+TCFLAGS+=		-D_GNU_SOURCE
+XAKE_FLAGS+=		CCOPTS="${TCFLAGS}" MFLAGS="CC=${TARGET_CC}"
+
+CONFIGURE_STYLE:=	gnu
 CONFIGURE_FLAGS+=	KERNEL_INCLUDE="${LINUX_DIR}/include"
-MAKE_FLAGS+=		MFLAGS="CC=${TARGET_CC}"
-BUILD_STYLE=		auto
-INSTALL_STYLE=		auto
+BUILD_STYLE:=		auto
+INSTALL_STYLE:=		auto
 
 INSTALL_y:=
 INSTALL_m:=
diff --git a/package/iproute2/patches/patch-Makefile b/package/iproute2/patches/patch-Makefile
index 194162a87..841c6f32e 100644
--- a/package/iproute2/patches/patch-Makefile
+++ b/package/iproute2/patches/patch-Makefile
@@ -4,7 +4,7 @@
 	  used to compile host-utils in netem/
 	- define LIBUTIL for misc/ss to compile correctly
 --- iproute2-2.6.29-1.orig/Makefile	2009-03-24 23:40:54.000000000 +0100
-+++ iproute2-2.6.29-1/Makefile	2009-08-22 02:42:31.939603104 +0200
++++ iproute2-2.6.29-1/Makefile	2009-11-25 08:59:58.000000000 +0100
 @@ -20,10 +20,10 @@ ADDLIB+=dnet_ntop.o dnet_pton.o
  #options for ipx
  ADDLIB+=ipx_ntop.o ipx_pton.o
@@ -15,7 +15,7 @@
 -CFLAGS = $(CCOPTS) -I../include $(DEFINES)
 +CC := gcc
 +HOSTCC := gcc
-+CCOPTS := -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
++CCOPTS ?= -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
 +CFLAGS = $(CCOPTS) -I../include $(DEFINES) ${TARGET_CFLAGS}
  YACCFLAGS = -d -t -v
  
-- 
cgit v1.2.3