AC_CHECK_FUNCS(getopt_long)
--- a/Makefile.am 2004-09-19 10:29:28.000000000 +0200
+++ b/Makefile.am 2006-02-27 16:57:31.166290750 +0100
-@@ -12,12 +12,17 @@
+@@ -12,12 +12,19 @@
fakeroot debian/rules binary
chrpath_SOURCES = \
+lib_LTLIBRARIES = libchrpath32.la libchrpath64.la
+libchrpath32_la_SOURCES = chrpath.c killrpath.c elf.c protos.h
+libchrpath32_la_CFLAGS = -DSIZEOF_VOID_P=4
++libchrpath32_la_LDFLAGS = -avoid-version
+libchrpath64_la_SOURCES = chrpath.c killrpath.c elf.c protos.h
+libchrpath64_la_CFLAGS = -DSIZEOF_VOID_P=8
++libchrpath64_la_LDFLAGS = -avoid-version
+
EXTRA_DIST = ChangeLog.usermap $(man_MANS)
}
} while (-1 != opt);
-+ dll[0] = dlopen("libchrpath32.so.0.0.0", RTLD_LAZY);
++ dll[0] = dlopen("libchrpath32.so", RTLD_LAZY);
+ killrpath[0] = (killrpath_t)dlsym(dll[0], "killrpath");
+ chrpath[0] = (chrpath_t)dlsym(dll[0], "chrpath");
+
-+ dll[1] = dlopen("libchrpath64.so.0.0.0", RTLD_LAZY);
++ dll[1] = dlopen("libchrpath64.so", RTLD_LAZY);
+ killrpath[1] = (killrpath_t)dlsym(dll[1], "killrpath");
+ chrpath[1] = (chrpath_t)dlsym(dll[1], "chrpath");
+