summaryrefslogtreecommitdiff
blob: 54a9362b94806ab8aab6470b461baf3e9964e515 (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
diff --git vzctl-3.0.12.orig/src/Makefile vzctl-3.0.12/src/Makefile
index a8be2d2..520058e 100644
--- vzctl-3.0.12.orig/src/Makefile
+++ vzctl-3.0.12/src/Makefile
@@ -17,7 +17,7 @@ #
      INSTALL = install
       PREFIX = /usr
      SBINDIR = $(PREFIX)/sbin
-      LIBDIR = $(PREFIX)/lib/vzctl/lib
+      LIBDIR = $(PREFIX)/lib64
      CONFDIR = /etc/vz
    GLBCONFIG = $(CONFDIR)/vz.conf
   VPSCONFDIR = $(CONFDIR)/conf
@@ -103,14 +103,14 @@ check-version:
 	$(CC) -c $(CFLAGS) $(SHAREDLIB_CFLAGS) $(INC) $< -o $@
 
 $(LIB_fs) : $(OBJ_simfs) lib/logger.lo 
-	$(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ -shared -o $@
+	$(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ -shared --Wl,-soname,$@ -o $@
 
 libvzctl.a: $(OBJ_libvzctl) $(OBJ_simfs)
 	ar scq $@ $+
 	ranlib $@
 
 $(LIB_vzctl) : $(OBJ_simfs) $(OBJ_libvzctl)
-	$(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ $(LD_FLAGS) -shared -o $@
+	$(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ $(LD_FLAGS) -shared --Wl,-soname,$@ -o $@
 
 vzctl-static: $(OBJ_vzctl) libvzctl.a
 	$(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ -rdynamic -ldl -lutil -o $@