]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/iplink.c
iproute: DESTDIR vs LIBDIR.
[mirror_iproute2.git] / ip / iplink.c
index 9a092630e97bb923c7c42869d962c0ba6c87319e..f4cbeb3ea7237934f8f563cea0d633ac609b8917 100644 (file)
@@ -33,8 +33,8 @@
 #include "ip_common.h"
 
 #define IPLINK_IOCTL_COMPAT    1
-#ifndef DESTDIR
-#define DESTDIR "/usr/"
+#ifndef LIBDIR
+#define LIBDIR "/usr/lib/"
 #endif
 
 static void usage(void) __attribute__((noreturn));
@@ -81,7 +81,7 @@ struct link_util *get_link_kind(const char *id)
                if (strcmp(l->id, id) == 0)
                        return l;
 
-       snprintf(buf, sizeof(buf), DESTDIR "/lib/ip/link_%s.so", id);
+       snprintf(buf, sizeof(buf), LIBDIR "/ip/link_%s.so", id);
        dlh = dlopen(buf, RTLD_LAZY);
        if (dlh == NULL) {
                /* look in current binary, only open once */