mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 05:55:11 +08:00
iproute2 - Fix up and simplify variables pointing to install directories
Define where is the are located the iproute2 config files. Get rid of trailing slashes for paths in several file. Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
This commit is contained in:
parent
761a1e6028
commit
5c434a9e5a
11
Makefile
11
Makefile
@ -1,10 +1,11 @@
|
||||
DESTDIR=/usr/
|
||||
ROOTDIR=$(DESTDIR)
|
||||
LIBDIR=/usr/lib/
|
||||
PREFIX=/usr
|
||||
LIBDIR=$(PREFIX)/lib
|
||||
SBINDIR=/sbin
|
||||
CONFDIR=/etc/iproute2
|
||||
DOCDIR=/share/doc/iproute2
|
||||
MANDIR=/share/man
|
||||
DATADIR=$(PREFIX)/share
|
||||
DOCDIR=$(DATADIR)/doc/iproute2
|
||||
MANDIR=$(DATADIR)/man
|
||||
ARPDDIR=/var/lib/arpd
|
||||
|
||||
# Path to db_185.h include
|
||||
@ -17,6 +18,8 @@ ifneq ($(SHARED_LIBS),y)
|
||||
DEFINES+= -DNO_SHARED_LIBS
|
||||
endif
|
||||
|
||||
DEFINES+=-DCONFDIR=\"$(CONFDIR)\"
|
||||
|
||||
#options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
|
||||
LDLIBS=-lresolv
|
||||
ADDLIB=
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
#define IPLINK_IOCTL_COMPAT 1
|
||||
#ifndef LIBDIR
|
||||
#define LIBDIR "/usr/lib/"
|
||||
#define LIBDIR "/usr/lib"
|
||||
#endif
|
||||
|
||||
static void usage(void) __attribute__((noreturn));
|
||||
|
@ -91,7 +91,7 @@ YACC := bison
|
||||
LEX := flex
|
||||
CFLAGS += -DYY_NO_INPUT
|
||||
|
||||
MODDESTDIR := $(DESTDIR)$(patsubst /usr%,%,$(LIBDIR))/tc
|
||||
MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc
|
||||
|
||||
%.so: %.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic $< -o $@
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "tc_util.h"
|
||||
|
||||
#ifndef LIBDIR
|
||||
#define LIBDIR "/usr/lib/"
|
||||
#define LIBDIR "/usr/lib"
|
||||
#endif
|
||||
|
||||
const char *get_tc_lib(void)
|
||||
|
Loading…
Reference in New Issue
Block a user