Skip to contentSkip to conversation

lz4: disable static library on shared only

PATCH New Baruch Siach 2 participants 2 messages Apr 24, 2018 – Apr 25, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lz4: disable static library on shared only

Don't build the static library when BR2_SHARED_LIBS=y, to reduce build time.

---
 package/lz4/lz4.mk | 2 ++
 1 file changed, 2 insertions(+)
package/lz4/lz4.mk +2 -0
index b17bc8ada90f..c5540124e920 100644
@@ -12,6 +12,8 @@ LZ4_LICENSE_FILES = lib/LICENSE programs/COPYING
 
 ifeq ($(BR2_STATIC_LIBS),y)
 LZ4_MAKE_OPTS += BUILD_SHARED=no
+else ifeq ($(BR2_SHARED_LIBS),y)
+LZ4_MAKE_OPTS += BUILD_STATIC=no
 endif
 
 define HOST_LZ4_BUILD_CMDS
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 lz4: disable static library on shared only

Hello,

Quoted 7 lines · Baruch Siach

Don't build the static library when BR2_SHARED_LIBS=y, to reduce build time.

---
 package/lz4/lz4.mk | 2 ++
 1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com