From e8628a20748da52d5200e1dc7c48e58c00cc64b1 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Thu, 18 Sep 2014 19:40:48 -0700 Subject: flann: Symlink to _s library Signed-off-by: Timothy Gu --- src/flann.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/flann.mk b/src/flann.mk index cfd55f9..ce8ea14 100644 --- a/src/flann.mk +++ b/src/flann.mk @@ -17,7 +17,7 @@ define $(PKG)_UPDATE head -1 endef -define $(PKG)_BUILD +define $(PKG)_BUILD_SHARED # workaround for strange "too many sections" error # setting CXXFLAGS='-O3' seems to fix it # similar to http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg06329.html @@ -30,3 +30,11 @@ define $(PKG)_BUILD -DUSE_OPENMP=ON $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1 endef + +define $(PKG)_BUILD + $($(PKG)_BUILD_SHARED) + for l in flann flann_cpp; do \ + ln -sf '$(PREFIX)/$(TARGET)'/lib/lib$$l.a \ + '$(PREFIX)/$(TARGET)'/lib/lib$${l}_s.a ; \ + done +endef -- cgit v0.12