Commit Graph

39 Commits

Author SHA1 Message Date
Diego Elio Pettenò
2230ac1d18 Remove -L flags from link
While the previous code was supposed to work nonetheless, it could be
messed up if further -L were used in LDFLAGS to list the path where glibc's
libutil was to be found.

References: https://bugs.gentoo.org/347489

Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
2011-03-09 10:18:03 -08:00
Stephen Hemminger
82408fc17d Workaround for repeated distclean
The subdirectory makefiles need Config file to exist.
Therefore create it, then run make clean, then remove it.
2010-11-18 15:25:38 -08:00
Mike Frysinger
f2e27cfb01 support static-only systems
The iptables code supports a "no shared libs" mode where it can be used
without requiring dlfcn related functionality.  This adds similar support
to iproute2 so that it can easily be used on systems like nommu Linux (but
obviously with a few limitations -- no dynamic plugins).

Rather than modify every location that uses dlfcn.h, I hooked the dlfcn.h
header with stub functions when shared library support is disabled.  Then
symbol lookup is done via a local static lookup table (which is generated
automatically at build time) so that internal symbols can be found.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-10 10:44:20 -08:00
Wolfgang Grandegger
ed1af7e868 iproute2: Fixes an issue with cross-compilation
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
2009-05-26 15:22:20 -07:00
Olaf Rempel
e48f73d6a5 iproute2-2.6.14-051107: missing arpd directory
arpd requires a directory (/var/lib/arpd/) to run.
see attached patch, which lets iproute create this directroy during install.
2009-03-27 11:26:57 -07:00
Andreas Henriksson
5e3bb534ae iproute: DESTDIR vs LIBDIR.
Hello Rafael Almeida.

I noticed your patch adding DESTDIR support in the latest iproute2 release.
Much appreciated! Soon the debian packages might be able to move to actually
using "make install" rather then it's own installation procedure when
building packages. I've noticed something that will break though....

Debian packages usually sets DESTDIR=debian/tmp/ and packages the contents
of that directory as if it where the root file system. This will break
the /usr/lib/{tc,ip}/ module loading, because they DESTDIR (/usr) will be
/whatever-the-build-path-was/debian/tmp/lib/{tc,ip}/.
I beleive others usually call this the LIBDIR to make the separation between
DISTDIR being the (possibly temporary) place things are put when build is
done, and LIBDIR (and others) are used for actual runtime paths.

I'm attaching a patch that I think fixes this, but would be really happy if
you could have a look at to verify I'm not screwing something up.

--
Regards,
Andreas Henriksson

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-09-17 22:04:02 -07:00
Rafael Almeida
b514b3587e Fixed installation when changing DESTDIR
After changing the DESTDIR the installated binaries have some issues
due to hard coded paths. For example, using distributions on NetEm
would segfault.

I've changed iplink.c and tc_util.c so they are now aware of DESTDIR.
Along with that change I needed to change the main Makefile so it
defines the DESTDIR macro when calling gcc.

I also changed the paths so that during the installation sbin, etc,
share and lib directories are created directly inside of the DESTDIR,
instead of creating a usr directory inside that. That's the behaviour
of most packages out there, so I think most users will be expecting
that to happen.
2008-07-25 13:40:19 -07:00
Andreas Henriksson
7dfb036665 Add routel and routef man page. 2008-05-09 17:07:06 -07:00
Stephen Hemminger
235ac6a41d snapshot target
Add Makefile target to create snapshot file.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-12-21 09:53:45 -08:00
Andreas Henriksson
f7c3cefc9c Add new rtacct/nstat manpages and additional symlinks.
Symlink rtstat(8) and ctstat(8) to lnstat(8).
Add rtacct/nstat manpage based on doc/nstat.sgml as rtacct(8).
Symlink nstat(8) to rtacct(8).
Add arpd(8) symlink based on doc/arpd.sgml.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-10-12 14:56:33 -07:00
Yasuyuki KOZAKAI
705899a0da Fix symbolic link to tc-bfifo.8
tc-pbfifo.8 does not exist because it was moved to tc-bfifo.8.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-06-19 16:30:12 -07:00
Mike Frysinger
95dd595049 do not ignore build failures in subdirs of iproute2
if a file fails to compile in a subdir of iproute2 fails (say "tunnel.c" in
the "ip" dir), the top level makefile does not abort:
 all: Config
    @for i in $(SUBDIRS); \
    do $(MAKE) $(MFLAGS) -C $$i; done

the attached patch inserts a 'set -e' so that if the $(MAKE) fails, the all
target fails as well
-mike
2007-03-05 17:50:49 -08:00
Jamal Hadi Salim
65018ae43b This patch adds a generic netlink controller interface.
The controller is the only module using this at the moment.
Thomas has a sample user of genetlink that would fit here; bug him
for it.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 12:13:34 -07:00
shemminger
737f15f6da Thomas's ematch fixes for lex.
Fix more GCC signedness warnings.
2005-07-08 22:08:47 +00:00
shemminger
52d5ac3fcb Fix build issues 2005-07-05 22:11:37 +00:00
shemminger
c4c9765e0b The symlink commands create absolute symlinks instead of relative.
This causes dangling links in case the package is installed using
DESTDIR. Some package managers will report this as an error.
2005-06-23 17:39:57 +00:00
shemminger
f6aa8e00ac Add cscope target to Makefile 2005-06-23 17:31:49 +00:00
shemminger
87773db551 Add ematch cleanup 2005-06-23 17:23:53 +00:00
shemminger
9ddbb02e50 Add extended matches (nbyte, cmp, u32, meta) 2005-06-23 17:21:46 +00:00
shemminger
f35e928982 CVS forgets permissions on files, so use sh to run configure 2005-06-07 21:48:09 +00:00
osdl.net!shemminger
c450ff3df2 Make man3 directory
Don't build with debug stabs.

(Logical change 1.151)
2005-03-10 19:03:16 +00:00
osdl.net!shemminger
d33de54950 netem source file reorg
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
site!shemminger
b209eda990 different hostcc from targetcc
(Logical change 1.135)
2005-02-07 18:01:21 +00:00
net[shemminger]!shemminger
85ac60ce41 Import patch iproute2.114
(Logical change 1.116)
2005-01-17 23:27:37 +00:00
osdl.net!shemminger
c72238e48a Fix install issues with some versions of find.
(Logical change 1.109)
2004-12-07 23:57:50 +00:00
net[shemminger]!shemminger
44d3eb258c Import patch iproute2-compile-fixes-1.diff
(Logical change 1.93)
2004-10-07 18:55:51 +00:00
osdl.net!shemminger
562fac2af3 FHS says to put documents in /usr/share/doc
(Logical change 1.90)
2004-09-28 19:59:54 +00:00
osdl.net!shemminger
cb4d97a9a8 add mike's stuff.
(Logical change 1.89)
2004-09-28 19:16:48 +00:00
osdl.net!shemminger
c3759b76a2 fix when DESTDIR is set.
(Logical change 1.86)
2004-09-28 18:52:54 +00:00
osdl.net!shemminger
06ddd50f1f Makefile cleanup
(Logical change 1.76)
2004-08-30 22:37:50 +00:00
osdl.net!shemminger
71c60c0724 We have our own includes (for now)
(Logical change 1.61)
2004-08-04 17:45:52 +00:00
osdl.net!shemminger
e9a05e96a4 Change how install works so it can be run from BK tree without
putting in SCCS files.

(Logical change 1.46)
2004-07-02 17:47:15 +00:00
osdl.net!shemminger
d1e48c7e5c fix up dbm_include
(Logical change 1.34)
2004-06-25 21:20:20 +00:00
osdl.net!shemminger
adff36d765 Cleaner way to configure
(Logical change 1.33)
2004-06-25 21:14:22 +00:00
osdl.org!shemminger
c90d5875a9 More build and target directory changes.
(Logical change 1.20)
2004-06-09 21:28:11 +00:00
osdl.org!shemminger
47b7d94c9e Get rid of this glibc-include stuff, not needed anymore.
(Logical change 1.16)
2004-06-08 23:50:43 +00:00
osdl.org!shemminger
7bbc17647b Don't use KERNEL_INCLUDE unless necessary.
(Logical change 1.14)
2004-06-08 22:51:46 +00:00
osdl.org!shemminger
aba5acdfdb (Logical change 1.3) 2004-04-15 20:56:59 +00:00
osdl.org!shemminger
86fdf0e47b Initial revision 2004-04-15 20:56:59 +00:00