I wonder whether anyone has done this before/can help me out. I’m
to compile GNURadio with all static libraries, so that there are zero
dependencies. I’ve been playing around with CMake, but it looks like the
linker order is wrong for compiling against static libraries:
What CMake is generating is:
.o -o -l -l etc.
This works for shared libs, but I believe the linker will search for
libraries specified before the target on the command line, it’s coming
with undefined refs using static libs at the moment.
What I think my binutils needs is:
.o -l -l etc. -o
i.e. how can I coerce cmake to generate link scripts with the target at
end of the line (or at least, after the libraries)