OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lvm2/no_dynamic.diff
  5. # Copyright (C) 2007 - 2008 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./make.tmpl.in.orig 2006-07-07 19:57:41.000000000 +0000
  18. +++ ./make.tmpl.in 2006-07-07 19:58:24.000000000 +0000
  19. @@ -110,7 +110,7 @@
  20. SUBDIRS.clean := $(SUBDIRS:=.clean)
  21. SUBDIRS.distclean := $(SUBDIRS:=.distclean)
  22. -TARGETS += $(LIB_SHARED) $(LIB_STATIC)
  23. +TARGETS += $(LIB_STATIC)
  24. all: $(SUBDIRS) $(TARGETS)
  25. --- ./tools/Makefile.in.orig 2008-09-04 15:57:21.000000000 -0400
  26. +++ ./tools/Makefile.in 2008-09-04 16:04:57.000000000 -0400
  27. @@ -67,11 +67,10 @@
  28. vgsplit.c
  29. TARGETS =\
  30. - .commands \
  31. - lvm
  32. + .commands
  33. -INSTALL_TARGETS = install_tools_dynamic
  34. -INSTALL_CMDLIB_TARGETS = install_cmdlib_dynamic
  35. +INSTALL_TARGETS =
  36. +INSTALL_CMDLIB_TARGETS =
  37. ifeq ("@STATIC_LINK@", "yes")
  38. TARGETS += lvm.static
  39. @@ -87,7 +86,7 @@
  40. lvmcmdlib.o lvm-static.o
  41. ifeq ("@CMDLIB@", "yes")
  42. - TARGETS += liblvm2cmd.so
  43. + TARGETS += liblvm2cmd.a
  44. INSTALL_TARGETS += $(INSTALL_CMDLIB_TARGETS)
  45. endif
  46. @@ -103,7 +103,7 @@
  47. LIB_PTHREAD = @LIB_PTHREAD@
  48. lvm.static: $(OBJECTS) lvm-static.o $(top_srcdir)/lib/liblvm.a
  49. $(CC) -o $@ $(CFLAGS) $(OBJECTS) lvm-static.o -static \
  50. - $(LDFLAGS) $(LVMLIBS) $(LIBS) $(LIB_PTHREAD) -rdynamic
  51. + $(LDFLAGS) $(LVMLIBS) $(LIBS) $(LIB_PTHREAD)
  52. liblvm2cmd.a: $(top_srcdir)/lib/liblvm.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o
  53. cat $(top_srcdir)/lib/liblvm.a > $@
  54. @@ -166,6 +166,6 @@
  55. install_tools_static: lvm.static
  56. $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) lvm.static \
  57. - $(staticdir)/lvm.static
  58. + $(staticdir)/lvm
  59. install: $(INSTALL_TARGETS)
  60. --- ./configure.orig 2008-06-27 15:57:27.000000000 -0400
  61. +++ ./configure 2008-09-04 16:10:34.000000000 -0400
  62. @@ -1958,7 +1958,6 @@
  63. CLDWHOLEARCHIVE="-Wl,-whole-archive"
  64. CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
  65. LDDEPS="$LDDEPS .export.sym"
  66. - LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
  67. LIB_SUFFIX=so
  68. DEVMAPPER=yes
  69. ODIRECT=yes
  70. --- ./configure.in.orig 2008-09-04 16:07:39.000000000 -0400
  71. +++ ./configure.in 2008-09-04 16:10:10.000000000 -0400
  72. @@ -33,7 +33,6 @@
  73. CLDWHOLEARCHIVE="-Wl,-whole-archive"
  74. CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
  75. LDDEPS="$LDDEPS .export.sym"
  76. - LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
  77. LIB_SUFFIX=so
  78. DEVMAPPER=yes
  79. ODIRECT=yes