c - Compile coretuils as shared objects? -
i trying compile gnu coreutils set of shared libraries, instead of set of executables. thought make
let me pass in flag tell this, can see have modify configure.ac , makefile.am in order make work. prefer not this, since potentially introduces bugs code can rely on being bug-free. tried manually turning object files so's entering:
make cflags='-fpic' gcc -shared -o ls.so coreutils/src/ls.o
i able create file, there seem number of flags missing, , don't see way access list of necessary flags compile , link code (even though information contained in computer). thing can think manually go through of linker errors , try figure out flags missing, i'm hoping there less tedious way of getting want.
not sure you're trying do, related ./configure --enable-single-binary option links objects single executable.
Comments
Post a Comment