diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-03-04 12:10:40 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-03-04 12:10:40 +0000 |
commit | 19a2c6e0a745fca24e4dfa7b93a88d10af340c98 (patch) | |
tree | ff44c709e25021208d5a04febcffc5f8f94cc5fe /daemons/dmeventd/Makefile.in | |
parent | f8f6ec92b13ace440d5037c1e18ea53096895688 (diff) | |
download | lvm2-19a2c6e0a745fca24e4dfa7b93a88d10af340c98.tar.gz lvm2-19a2c6e0a745fca24e4dfa7b93a88d10af340c98.tar.xz lvm2-19a2c6e0a745fca24e4dfa7b93a88d10af340c98.zip |
Use DL_LIBS, remove -ldl from global LIBS and link -ldl only when needed.
Diffstat (limited to 'daemons/dmeventd/Makefile.in')
-rw-r--r-- | daemons/dmeventd/Makefile.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in index df223ef1..dc48f0d7 100644 --- a/daemons/dmeventd/Makefile.in +++ b/daemons/dmeventd/Makefile.in @@ -53,7 +53,6 @@ include $(top_builddir)/make.tmpl all: device-mapper device-mapper: $(TARGETS) -LIBS += -ldl LVMLIBS += -ldevmapper-event -ldevmapper $(PTHREAD_LIBS) $(VERSIONED_SHLIB): $(LIB_SHARED) @@ -62,11 +61,11 @@ $(VERSIONED_SHLIB): $(LIB_SHARED) dmeventd: $(LIB_SHARED) $(VERSIONED_SHLIB) dmeventd.o $(CC) $(CFLAGS) $(LDFLAGS) -L. -o $@ dmeventd.o \ - $(LVMLIBS) $(LIBS) -rdynamic + $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a $(CC) $(CFLAGS) $(LDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ - dmeventd.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS) + dmeventd.o $(DL_LIBS) $(LVMLIBS) $(STATIC_LIBS) $(LIBS) ifeq ("@PKGCONFIG@", "yes") INSTALL_LIB_TARGETS += install_pkgconfig |