Browse Source

fix include order in iproute2

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1239 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 22 years ago
parent
commit
18cbc51f32
2 changed files with 10 additions and 26 deletions
  1. +0
    -22
      package/base/iproute2/new-kernels.patch
  2. +10
    -4
      package/base/iproute2/no_werror.patch

+ 0
- 22
package/base/iproute2/new-kernels.patch

@ -1,22 +0,0 @@
This should fix the compilation for new kernels.
- alan.rock@glaramara.freeserve.co.uk
diff -Naur iproute2.rockpatched/Makefile iproute2/Makefile
--- iproute2.rockpatched/Makefile 2003-08-27 13:53:08.000000000 +0100
+++ iproute2/Makefile 2003-08-27 13:53:35.000000000 +0100
@@ -20,11 +20,11 @@
ifeq ($(LIBC_INCLUDE)/socketbits.h,$(wildcard $(LIBC_INCLUDE)/socketbits.h))
ifeq ($(LIBC_INCLUDE)/net/if_packet.h,$(wildcard $(LIBC_INCLUDE)/net/if_packet.h))
- GLIBCFIX=-I../include-glibc -include ../include-glibc/glibc-bugs.h
+ GLIBCFIX=-include ../include-glibc/glibc-bugs.h
endif
endif
ifeq ($(LIBC_INCLUDE)/bits/socket.h,$(wildcard $(LIBC_INCLUDE)/bits/socket.h))
- GLIBCFIX=-I../include-glibc -include ../include-glibc/glibc-bugs.h
+ GLIBCFIX=-include ../include-glibc/glibc-bugs.h
endif
CC = gcc

+ 10
- 4
package/base/iproute2/no_werror.patch

@ -20,14 +20,20 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- ./Makefile.orig 2002-10-30 21:19:05.000000000 +0100
+++ ./Makefile 2002-10-30 21:19:56.000000000 +0100
@@ -28,7 +28,7 @@
The include order need to be changed since a usr/include/utils.h might
exist (cdparanoia). With new gcc the source yields some warnings so
-Werror needs to be stripped ...
--- Makefile.orig 2001-08-02 08:37:03.000000000 +0200
+++ Makefile 2003-08-28 22:29:43.000000000 +0200
@@ -28,8 +28,8 @@
endif
CC = gcc
-CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g
-CFLAGS = $(CCOPTS) $(GLIBCFIX) -I$(KERNEL_INCLUDE) -I../include $(DEFINES)
+CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g
CFLAGS = $(CCOPTS) $(GLIBCFIX) -I$(KERNEL_INCLUDE) -I../include $(DEFINES)
+CFLAGS = $(CCOPTS) -I../include $(GLIBCFIX) -I$(KERNEL_INCLUDE) $(DEFINES)
LDLIBS += -L../lib -lnetlink -lutil

Loading…
Cancel
Save