Skip to contentSkip to conversation

package/lensfun: fix static only build

PATCH New Romain Naour 2 participants 2 messages Mar 31, 2017 – Apr 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lensfun: fix static only build

Build lensfun.a for static only build.

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

---
 package/lensfun/lensfun.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/lensfun/lensfun.mk +6 -0
index 8e92e59..fa002c7 100644
@@ -34,6 +34,12 @@ else
 LENSFUN_CONF_OPTS += -DBUILD_LENSTOOL=OFF
 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 run setup.py on the host.
 LENSFUN_CONF_OPTS += -DINSTALL_HELPER_SCRIPTS=OFF -DPYTHON=OFF
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 package/lensfun: fix static only build

Hello,

Quoted 9 lines · Romain Naour

Build lensfun.a for static only build.

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

---
 package/lensfun/lensfun.mk | 6 ++++++
 1 file changed, 6 insertions(+)

I was a little bit confused at first, because we normally want the static library either in the BR2_STATIC_LIBS or BR2_SHARED_STATIC_LIBS case. But lensfun build system only allows to build either the shared library *OR* the static library, not both, so what you did is I believe the best solution.

Therefore: applied, thanks!

Best regards,

Thomas

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