#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));
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 */