lz4: disable static library on shared only
authorBaruch Siach <baruch@tkos.co.il>
Tue, 24 Apr 2018 11:14:43 +0000 (14:14 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 25 Apr 2018 13:29:55 +0000 (15:29 +0200)
Don't build the static library when BR2_SHARED_LIBS=y, to reduce build
time.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lz4/lz4.mk

index b17bc8ada90fa2982c691e788abeb5b46ee958f3..c5540124e920e68058dcd427059a8df971ec0a07 100644 (file)
@@ -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