]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iplink.c
Fixed installation when changing DESTDIR
authorRafael Almeida <rafaelc@dcc.ufmg.br>
Mon, 2 Jun 2008 00:33:44 +0000 (21:33 -0300)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 25 Jul 2008 20:40:19 +0000 (13:40 -0700)
commitb514b3587ee56552fcc87a066c955a7ff4f55d6f
treed9614f89044a3458b22b69b4f54afc87963cc9ca
parent6579feeac4ccc0f087fa402486b3b2fcbcabc77f
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.
Makefile
ip/iplink.c
netem/Makefile
tc/Makefile
tc/tc_util.c