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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -