News for hackers. Stuff that matters.
Re:Google releases snappy, the compression library used in B... by regularfry on Wednesday March 23, 2011 @04:05AM (#2358520)
That's probably fine as long as you're just compiling .c to .o. I suspect it breaks down in the face of anything more complex. For instance, I've got a problem right now where I need to use objcopy to turn arbitrary binaries into .o files, and that requires knowledge about the toolchain on the user's machine which, as far as I can tell, can only be gathered by compiling a throwaway file and sniffing its output with objdump. That's exactly the sort of task which autotools is good at, but I'm desperately trying to find a different way to get at the information so I don't have to introduce autotools to what is otherwise an already... erm... interesting build chain.
Re:Google releases snappy, the compression library used in B... by fanf2 on Thursday March 24, 2011 @10:18PM (#2366927)
Why not just convert the binary into an array literal in a C source file and compile that?