2016-11-22 20:38:40 +00:00
|
|
|
Fix static linking of 'lvm.static', which indirectly depend on libpthread
|
2017-05-11 19:30:35 +00:00
|
|
|
and libm via libdevmapper.a.
|
2016-11-22 20:38:40 +00:00
|
|
|
|
|
|
|
--- LVM2.2.02.166/tools/Makefile.in 2016-11-22 21:31:15.521045149 +0100
|
|
|
|
+++ LVM2.2.02.166/tools/Makefile.in 2016-11-22 21:31:24.085082767 +0100
|
2019-01-31 23:24:38 +00:00
|
|
|
@@ -137,7 +137,7 @@
|
|
|
|
lvm.static: $(OBJECTS) lvm-static.o $(LVMINTERNAL_LIBS)
|
|
|
|
@echo " [CC] $@"
|
|
|
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ $+ \
|
|
|
|
- $(DMEVENT_LIBS) $(STATIC_LIBS) $(LVMLIBS)
|
|
|
|
+ $(DMEVENT_LIBS) $(STATIC_LIBS) $(LVMLIBS) $(PTHREAD_LIBS)
|
2016-11-22 20:38:40 +00:00
|
|
|
|
|
|
|
liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o
|
2019-01-31 23:24:38 +00:00
|
|
|
@echo " [AR] $@"
|
2018-07-31 20:18:51 +00:00
|
|
|
--- a/make.tmpl.in 2018-07-31 22:00:39.969983104 +0200
|
|
|
|
+++ b/make.tmpl.in 2018-07-31 22:00:58.467613682 +0200
|
2019-01-31 23:24:38 +00:00
|
|
|
@@ -63,7 +63,7 @@
|
2018-07-31 20:18:51 +00:00
|
|
|
|
2019-01-31 23:24:38 +00:00
|
|
|
LIBS += @LIBS@ $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(RT_LIBS) $(M_LIBS)
|
2018-07-31 20:18:51 +00:00
|
|
|
# Extra libraries always linked with static binaries
|
|
|
|
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
|
|
|
|
+STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(M_LIBS)
|
|
|
|
DEFS += @DEFS@
|
|
|
|
# FIXME set this only where it's needed, not globally?
|
|
|
|
CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@
|
2019-01-31 23:24:38 +00:00
|
|
|
--- a/libdm/make.tmpl.in 2018-12-18 15:22:34.000000000 +0100
|
|
|
|
+++ b/libdm/make.tmpl.in 2019-01-29 21:45:33.637345799 +0100
|
|
|
|
@@ -57,7 +57,7 @@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(RT_LIBS) -lm
|
|
|
|
# Extra libraries always linked with static binaries
|
|
|
|
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
|
|
|
|
+STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(PTHREAD_LIBS) $(M_LIBS)
|
|
|
|
DEFS += @DEFS@
|
|
|
|
# FIXME set this only where it's needed, not globally?
|
|
|
|
CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@
|