flann: Symlink to _s library

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-09-18 19:40:48 -07:00
parent 7cb9753e49
commit e8628a2074
1 changed files with 9 additions and 1 deletions

View File

@ -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