Closed GoogleCodeExporter closed 9 years ago
Version 2.0.0 patched with
http://code.google.com/p/openjpeg/source/detail?r=2250
And the added line has one extra -L, the correct patch/path for the source is
--- openjpeg-2.0.0/src/lib/openjp2/libopenjp2.pc.cmake.in.orig
+++ openjpeg-2.0.0/src/lib/openjp2/libopenjp2.pc.cmake.in
@@ -10,4 +10,5 @@
URL: http://www.openjpeg.org/
Version: @OPENJPEG_VERSION@
Libs: -L${libdir} -lopenjp2
+Libs.private: -L${libdir} -lopenjp2 -lm
Cflags: -I${includedir}
Original comment by michaelb...@googlemail.com
on 8 Jun 2013 at 10:19
'man pgk-config':
Libs.private:
This line should list any private libraries in use. Private
libraries are libraries which are not exposed through your
library, but are needed in the case of static linking. This dif-
fers from Requires.private in that it references libraries that
do not have package files installed.
'-lopenjp2' is not an additional library, but '-lm' is.
winfried
Original comment by szukw...@arcor.de
on 11 Jul 2013 at 12:10
Would it make sense to apply only the following patch then ?
--- openjpeg-2.0.0/src/lib/openjp2/libopenjp2.pc.cmake.in.orig
+++ openjpeg-2.0.0/src/lib/openjp2/libopenjp2.pc.cmake.in
@@ -10,4 +10,5 @@
URL: http://www.openjpeg.org/
Version: @OPENJPEG_VERSION@
Libs: -L${libdir} -lopenjp2
+Libs.private: -L${libdir} -lm
Cflags: -I${includedir}
Original comment by mathieu.malaterre
on 24 Feb 2014 at 9:24
Libs.private is for UNIX only. And UNIX usually knows where '-lm' is located.
'${libdir}' is the installation path of 'libopenjp2':
This means:
Libs.private: -lm
is enough.
winfried
Original comment by szukw...@gmail.com
on 24 Feb 2014 at 5:19
Ok. Fixed in r2404. Closing
Original comment by mathieu.malaterre
on 24 Feb 2014 at 5:24
Original comment by mathieu.malaterre
on 28 Feb 2014 at 8:32
Original issue reported on code.google.com by
michaelb...@googlemail.com
on 8 Jun 2013 at 10:11