Skip to contentSkip to conversation

lvm2: ensured TARGET_AR is used during build

PATCH New Jordan Yelloz 2 participants 2 messages Dec 12, 2016 – Dec 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvm2: ensured TARGET_AR is used during build

The same way TARGET_CC was not being used during the build, TARGET_AR was not used either. Now TARGET_CONFIGURE_OPTS is injected into LVM2_MAKE_ENV which should include all the toolchain substitutions.

---
 package/lvm2/lvm2.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/lvm2/lvm2.mk +2 -2
index ae9581caaef4..a2d484bc250a 100644
@@ -20,8 +20,8 @@ LVM2_CONF_OPTS += \
 	--enable-dmeventd
 
 # LVM2 uses autoconf, but not automake, and the build system does not
-# take into account the CC passed at configure time.
-LVM2_MAKE_ENV = CC="$(TARGET_CC)"
+# take into account the toolchain passed at configure time.
+LVM2_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
 
 ifeq ($(BR2_PACKAGE_READLINE),y)
 LVM2_DEPENDENCIES += readline
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 lvm2: ensured TARGET_AR is used during build

Hello,

Quoted 8 lines · Jordan Yelloz

The same way TARGET_CC was not being used during the build, TARGET_AR was not used either. Now TARGET_CONFIGURE_OPTS is injected into LVM2_MAKE_ENV which should include all the toolchain substitutions.

---
 package/lvm2/lvm2.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com