diff options
author | Olivia Yin <hong-hua.yin@freescale.com> | 2013-05-07 07:26:47 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-10 11:02:37 +0200 |
commit | f9f1a63e03d11028785cc4beeb19041b15f8dcb0 (patch) | |
tree | 6206ed4681373e81a62bd1fd465762e250e0dde7 | |
parent | eb040205f38eb0e2c28ccc7b4f64e9541cc82cc0 (diff) | |
download | meta-openembedded-f9f1a63e03d11028785cc4beeb19041b15f8dcb0.tar.gz |
lvm2: add configure option --with-usrlibdir to install shared library in 64-bit systems
According to make.tmpl.in, shared lib will be installed under $(usrlibdir)
install_lib_shared: $(LIB_SHARED)
$(INSTALL_PROGRAM) -D $< $(libdir)/$(<F).$(LIB_VERSION)
$(INSTALL_DIR) $(usrlibdir)
$(LN_S) -f $(USRLIB_RELPATH)$(<F).$(LIB_VERSION) $(usrlibdir)/$(<F)
But default $(usrlibdir) is $(DESTDIR)${prefix}/lib no matter it is 32-bit or 64-bit system.
So we need align $(usrlibdir) with $(libdir).
Signed-off-by: Olivia Yin <hong-hua.yin@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index 157e11b92..5de1e3f7f 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
@@ -4,7 +4,7 @@ DEPENDS = "udev" | |||
4 | LICENSE = "GPLv2 & LGPLv2" | 4 | LICENSE = "GPLv2 & LGPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
6 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" | 6 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" |
7 | INC_PR = "r0" | 7 | INC_PR = "r1" |
8 | 8 | ||
9 | 9 | ||
10 | S = "${WORKDIR}/LVM2.${PV}" | 10 | S = "${WORKDIR}/LVM2.${PV}" |
@@ -37,3 +37,4 @@ TARGET_CC_ARCH += "${LDFLAGS}" | |||
37 | FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" | 37 | FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" |
38 | FILES_${PN}-dbg += "${libdir}/device-mapper/.debug" | 38 | FILES_${PN}-dbg += "${libdir}/device-mapper/.debug" |
39 | 39 | ||
40 | EXTRA_OECONF = "--with-usrlibdir=${libdir}" | ||