Hi,
On Thu, May 19, 2016 at 07:55:46PM -0700, James Burgess wrote:
> $ grep whole-archive /usr/local/lib/pkgconfig/*
> /usr/local/lib/pkgconfig/libsigrok.pc:Libs: -L${libdir} -Wl,--whole-archive
> -lsigrok -Wl,--no-whole-archive
The --whole-archive is very new since yesterday or so, already tracked
as bug here:
http://sigrok.org/bugzilla/show_bug.cgi?id=802
The problem could be that "ld" is a (potentially very old) Mac OS X
linker which doesn't have the --whole-archive option. Recent gcc and
clang versions likely do.
This could be a linker misdetection issue on Mac/Homebrew, needs looking
into.
In my test I used CC=gcc-5 and CXX=g++-5, but that may not be
sufficient, it seems to use "ld" (older Mac linker, not the one from
gcc5) regardless.
For reference: I'm testing with this script:
http://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=cross-compile/macosx/sigrok-native-macosx
If you could figure out which linker gets detected/used and why (and
ideally find a fix for libsigrok or the cross-compile script) that would
be great!
Uwe.
--
http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel