• Kir Kolyshkin's avatar
    compel: make plugins .a archives · 8b99809a
    Kir Kolyshkin authored
    The objective is to only do parasite code linking once -- when we link
    parasite objects with compel plugin(s). So, let's use ar (rather than
    ld) here. This way we'll have a single ld invocation with the proper
    flags (from compel ldflags) etc.
    
    There are two tricks in doing it:
    
    1. The order of objects while linking is important. Therefore, compel
       plugins should be the last to add to ld command line.
    
    2. Somehow ld doesn't want to include parasite-head.o in the output
       (probably because no one else references it), so we have to force
       it in with the modification to our linker scripts.
    
    NB: compel makefiles are still a big mess, but I'll get there.
    Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    8b99809a
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...