Package: net-tools Version: 1.60-19 Severity: wishlist The net-tools Makefile uses non-standard envvars and overrides standard envvars that control the toolchain flags. This patch should set things right without reducing default behavior.
--- a/Makefile +++ b/Makefile @@ -88,10 +88,9 @@ endif # Compiler and Linker Options # You may need to uncomment and edit these if you are using libc5 and IPv6. -COPTS = -D_GNU_SOURCE -O2 -Wall -g # -I/usr/inet6/include -ifeq ($(origin LOPTS), undefined) -LOPTS = -endif +CFLAGS ?= -O2 -g +CFLAGS += -Wall +CPPFLAGS += -D_GNU_SOURCE RESLIB = # -L/usr/inet6/lib -linet6 ifeq ($(HAVE_AFDECnet),1) @@ -113,8 +112,8 @@ endif NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a -CFLAGS = $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH) -LDFLAGS = $(LOPTS) -L$(NET_LIB_PATH) +CPPFLAGS += -I. -idirafter ./include/ -I$(NET_LIB_PATH) +LDFLAGS += -L$(NET_LIB_PATH) SUBDIRS = man/ $(NET_LIB_PATH)/ @@ -125,8 +124,6 @@ LD = $(CC) NLIB = -l$(NET_LIB_NAME) -MDEFINES = COPTS='$(COPTS)' LOPTS='$(LOPTS)' TOPDIR='$(TOPDIR)' - %.o: %.c config.h version.h intl.h net-features.h $< $(CC) $(CFLAGS) -c $< @@ -176,13 +173,13 @@ $(NET_LIB): config.h version.h intl.h libdir i18n.h: i18ndir libdir: - @$(MAKE) -C $(NET_LIB_PATH) $(MDEFINES) + @$(MAKE) -C $(NET_LIB_PATH) i18ndir: @$(MAKE) -C po subdirs: - @for i in $(SUBDIRS); do $(MAKE) -C $$i $(MDEFINES) ; done + @for i in $(SUBDIRS); do $(MAKE) -C $$i ; done ifconfig: $(NET_LIB) ifconfig.o $(CC) $(LDFLAGS) -o ifconfig ifconfig.o $(NLIB) $(RESLIB) -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.24.4 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages net-tools depends on: ii libc6 2.7-8 GNU C Library: Shared libraries net-tools recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]