> On May 20, 2016, at 2:27 AM, Uwe Hermann <[email protected]> wrote: > > 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.
The linker on my Mac is that latest clang one from Xcode 7.3.0. $ ld -v @(#)PROGRAM:ld PROJECT:ld64-264.3.102 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS) LTO support using: LLVM version 7.3.0 It does not appear to support whole-archive. > This could be a linker misdetection issue on Mac/Homebrew, needs looking > into. Seems likely, this is my first brush with homebrew in years. I don’t know much about it. > > 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. Apple does not have any gcc in its tool chain any longer, I’m just using whatever they install. The thing Xcode installs called /usr/bin/gcc is actually clang, perhaps this is where the confusion creeps into autogen? > 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! I will give it shot! Cheers, - James ------------------------------------------------------------------------------ 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

