Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/autopano-sift-C/files: autopano-sift-C-2.5.1-lm.patch
Date: Wed, 28 Aug 2013 16:52:01
Message-Id: 20130828165157.77CDF2004C@flycatcher.gentoo.org
1 ssuominen 13/08/28 16:51:57
2
3 Added: autopano-sift-C-2.5.1-lm.patch
4 Log:
5 Link against -lm because the ScaleSpace.c (part of internal libsift.a library) is using the exp() function wrt #472150 by Jason Mours
6
7 (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
8
9 Revision Changes Path
10 1.1 media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch?rev=1.1&content-type=text/plain
14
15 Index: autopano-sift-C-2.5.1-lm.patch
16 ===================================================================
17 Link against -lm (mathlib) because ScaleSpace.c (which is part of the internal libsift.a)
18 is using the exp() function, see http://bugs.gentoo.org/472150
19
20 --- CMakeLists.txt
21 +++ CMakeLists.txt
22 @@ -121,7 +121,7 @@
23
24 ADD_LIBRARY(libsift STATIC ${LIBSIFT_SOURCES})
25
26 -set(all_libs libsift ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
27 +set(all_libs libsift m ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
28 ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${PANO13_LIBRARIES} ${LIBXML2_LIBRARIES})
29
30 add_executable(generatekeys GenerateKeys.c)