/[vps]/vzctl/patches/3.0.12/005_all_libvzctl-soname.patch
Gentoo

Diff of /vzctl/patches/3.0.12/005_all_libvzctl-soname.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 502 Revision 503
1Index: vzctl-3.0.12/src/Makefile 1Index: vzctl-3.0.12/src/Makefile
2=================================================================== 2===================================================================
3--- vzctl-3.0.12.orig/src/Makefile 3--- vzctl-3.0.12.orig/src/Makefile
4+++ vzctl-3.0.12/src/Makefile 4+++ vzctl-3.0.12/src/Makefile
5@@ -110,14 +110,14 @@ check-version:
6 $(CC) -c $(CFLAGS) $(SHAREDLIB_CFLAGS) $(INC) $< -o $@
7
8 $(LIB_fs) : $(OBJ_simfs) lib/logger.lo
9- $(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ -shared -o $@
10+ $(CC) $(CFLAGS) $(INC) $(LDFLAGS) -shared --Wl,-soname,$@ -o $@ $^
11
5@@ -117,7 +117,7 @@ libvzctl.a: $(OBJ_libvzctl) $(OBJ_simfs) 12 libvzctl.a: $(OBJ_libvzctl) $(OBJ_simfs)
13 ar scq $@ $+
6 ranlib $@ 14 ranlib $@
7 15
8 $(LIB_vzctl) : $(OBJ_simfs) $(OBJ_libvzctl) 16 $(LIB_vzctl) : $(OBJ_simfs) $(OBJ_libvzctl)
9- $(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ $(LD_FLAGS) -shared -o $@ 17- $(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ $(LD_FLAGS) -shared -o $@
10+ $(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ $(LD_FLAGS) -shared -Wl,-soname,$@ -o $@ 18+ $(CC) $(CFLAGS) $(INC) $(LDFLAGS) $^ $(LD_FLAGS) -shared -Wl,-soname,$@ -o $@

Legend:
Removed from v.502  
changed lines
  Added in v.503

  ViewVC Help
Powered by ViewVC 1.1.20