summaryrefslogtreecommitdiff
path: root/media-gfx/autopano-sift-C/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/autopano-sift-C/files
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/autopano-sift-C/files')
-rw-r--r--media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch b/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch
new file mode 100644
index 000000000000..97619975d9b6
--- /dev/null
+++ b/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch
@@ -0,0 +1,14 @@
+Link against -lm (mathlib) because ScaleSpace.c (which is part of the internal libsift.a)
+is using the exp() function, see http://bugs.gentoo.org/472150
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -121,7 +121,7 @@
+
+ ADD_LIBRARY(libsift STATIC ${LIBSIFT_SOURCES})
+
+-set(all_libs libsift ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
++set(all_libs libsift m ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
+ ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${PANO13_LIBRARIES} ${LIBXML2_LIBRARIES})
+
+ add_executable(generatekeys GenerateKeys.c)