With plplot 5.10.0:

# pkg-config plplotd --libs
-lplplotd

With plplot 5.11.0:
-lplplot -lltdl -lm -lshp -lfreetype -lcsirocsa -lcsironn -lqhull -lqsastime

# pkg-config plplot --libs


This is wrong because the extra libraries are only necessary in the case of static linking. To indicate this use Libs.private. See also http://people.freedesktop.org/~dbn/pkg-config-guide.html

The attached patch fixes. If some functions are referenced directly in the public plplot headers then you would need to add them to Libs.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  or...@cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com
diff -up plplot-5.11.0/pkgcfg/plplot-template.pc.in.pkgconfig plplot-5.11.0/pkgcfg/plplot-template.pc.in
--- plplot-5.11.0/pkgcfg/plplot-template.pc.in.pkgconfig	2015-04-12 04:08:04.000000000 -0600
+++ plplot-5.11.0/pkgcfg/plplot-template.pc.in	2015-04-22 22:05:56.899459009 -0600
@@ -6,5 +6,6 @@ Name: PLplot @PC_SHORT_NAME@
 Description: Scientific plotting library (@PC_PRECISION@@PC_LONG_NAME@)
 @PC_REQUIRES_TAG@: @PC_REQUIRES@
 Version: @PLPLOT_VERSION@
-Libs: -L"${libdir}" @PC_LINK_FLAGS@
+Libs: -L"${libdir}" -l@PC_LIBRARY_NAME@
+Libs.private: -L"${libdir}" @PC_LINK_FLAGS@
 Cflags: -I"${includedir}" @PC_COMPILE_FLAGS@
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to