diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-09-19 02:40:48 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-09-19 03:54:11 (GMT) |
commit | e8628a20748da52d5200e1dc7c48e58c00cc64b1 (patch) | |
tree | 9a068ff3ee30227744feea189f5e04153b4398a8 /src | |
parent | 7cb9753e497172224031ed77b1f75ba3efb300aa (diff) | |
download | mxe-e8628a20748da52d5200e1dc7c48e58c00cc64b1.zip mxe-e8628a20748da52d5200e1dc7c48e58c00cc64b1.tar.gz mxe-e8628a20748da52d5200e1dc7c48e58c00cc64b1.tar.bz2 |
flann: Symlink to _s library
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/flann.mk | 10 |
1 files changed, 9 insertions, 1 deletions
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 |