From: Aurelien Jacobs Date: Thu, 19 May 2016 14:25:14 +0000 (+0200) Subject: prevent the sr_driver_list section to be dropped with static linking X-Git-Tag: libsigrok-0.5.0~376 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=d12123100a0c0e6bf00c770f0aec20e5b30ed6e7 prevent the sr_driver_list section to be dropped with static linking --- diff --git a/libsigrok.pc.in b/libsigrok.pc.in index 791e3f03..eb4b7cf8 100644 --- a/libsigrok.pc.in +++ b/libsigrok.pc.in @@ -9,6 +9,6 @@ URL: http://www.sigrok.org Requires: glib-2.0 Requires.private: @SR_PKGLIBS@ Version: @SR_PACKAGE_VERSION@ -Libs: -L${libdir} -lsigrok +Libs: -L${libdir} -Wl,--whole-archive -lsigrok -Wl,--no-whole-archive Libs.private: @SR_EXTRA_LIBS@ Cflags: -I${includedir}