• Dmitry Safonov's avatar
    make, soccr: let CRIU depend on libsoccr · e2fb30d0
    Dmitry Safonov authored
    As -lsoccr now is in $(LIBS) in Makefile.packages, it should be
    build before criu objects. Otherwise, we try to compile
    feature-tests with $(LIBS) and the succesful features fails with:
      <stdin>:1:25: warning: extra tokens at end of #include directive
      /usr/bin/ld: cannot find -lsoccr
      collect2: error: ld returned 1 exit status
    Which lead to later problems:
      criu/sk-tcp.c:50:8: error: redefinition of 'struct tcp_repair_opt'
       struct tcp_repair_opt {
              ^
      In file included from criu/sk-tcp.c:1:0:
      /usr/include/netinet/tcp.h:259:8: note: originally defined here
       struct tcp_repair_opt
    Because of fails in really-sucessful feture-tests.
    
    P.S.
    Maybe we should unbound feature-tests compilation from $(LIBS),
    specified in Makefile.packages - that looks right after all.
    
    Cc: Cyrill Gorcunov <gorcunov@openvz.org>
    Cc: Pavel Emelyanov <xemul@virtuozzo.com>
    Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    e2fb30d0
Makefile 9.09 KB