summarylogtreecommitdiffstats
path: root/0001-Use-unversioned-libs.patch
blob: 36f0c5abb0ea187c7d534ec45494214ebf2f3be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@
 	SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
 endif
 
-LIBXXH = libxxhash.$(SHARED_EXT_VER)
+LIBXXH = libxxhash.$(SHARED_EXT)
 
 XXHSUM_SRC_DIR = cli
 XXHSUM_SPLIT_SRCS = $(XXHSUM_SRC_DIR)/xxhsum.c \
@@ -147,9 +147,7 @@
 $(LIBXXH): xxh_x86dispatch.c
 endif
 $(LIBXXH): xxhash.c
-	$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
-	ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR)
-	ln -sf $@ libxxhash.$(SHARED_EXT)
+	$(CC) $(FLAGS) $^ $(LDFLAGS) -o $@
 
 .PHONY: libxxhash
 libxxhash:  ## generate dynamic xxhash library
@@ -581,8 +579,6 @@
 	@echo Installing libxxhash
 	$(Q)$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
 	$(Q)$(INSTALL_PROGRAM) $(LIBXXH) $(DESTDIR)$(LIBDIR)
-	$(Q)ln -sf $(LIBXXH) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR)
-	$(Q)ln -sf $(LIBXXH) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT)
 
 install_libxxhash.includes:
 	$(Q)$(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR)   # includes
@@ -621,7 +617,6 @@
 uninstall:  ## uninstall libraries, CLI, links and man page
 	$(Q)$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.a
 	$(Q)$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT)
-	$(Q)$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR)
 	$(Q)$(RM) $(DESTDIR)$(LIBDIR)/$(LIBXXH)
 	$(Q)$(RM) $(DESTDIR)$(INCLUDEDIR)/xxhash.h
 	$(Q)$(RM) $(DESTDIR)$(INCLUDEDIR)/xxh3.h