Sfoglia il codice sorgente

package/lensfun: fix static only build

Build lensfun.a for static only build.

Fixes:
http://autobuild.buildroot.net/results/63e/63e7700a242c7c28ede0fe0b6a63db288e73e974/build-end.log

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Romain Naour 8 anni fa
parent
commit
a1efe5a151
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      package/lensfun/lensfun.mk

+ 6 - 0
package/lensfun/lensfun.mk

@@ -34,6 +34,12 @@ else
 LENSFUN_CONF_OPTS += -DBUILD_LENSTOOL=OFF
 LENSFUN_CONF_OPTS += -DBUILD_LENSTOOL=OFF
 endif
 endif
 
 
+ifeq ($(BR2_STATIC_LIBS),y)
+LENSFUN_CONF_OPTS += -DBUILD_STATIC=ON
+else
+LENSFUN_CONF_OPTS += -DBUILD_STATIC=OFF
+endif
+
 # Don't install helper scripts (which require python3 and gksudo).
 # Don't install helper scripts (which require python3 and gksudo).
 # Don't run setup.py on the host.
 # Don't run setup.py on the host.
 LENSFUN_CONF_OPTS += -DINSTALL_HELPER_SCRIPTS=OFF -DPYTHON=OFF
 LENSFUN_CONF_OPTS += -DINSTALL_HELPER_SCRIPTS=OFF -DPYTHON=OFF