Skip to content
  • Laurent Bercot's avatar
    e2e67719
    Do not reverse the argument order in LIBS · e2e67719
    Laurent Bercot authored
    
    
     Linker command line order is important: -la -lb means that
    liba can depend on libb, but not the other way around. The
    way make-tinyssh.sh constructs the libs variable from the
    LIBS environment variable should not reverse the order.
    Also, local libs like libtinysshcrypto.a should be listed
    first, so they correctly resolve local symbols (this is
    important when linking against skalibs, which exports symbols
    like uint32_unpack_big() with a different signature).
    
    Signed-off-by: default avatarLaurent Bercot <ska@appnovation.com>
    e2e67719
    Do not reverse the argument order in LIBS
    Laurent Bercot authored
    
    
     Linker command line order is important: -la -lb means that
    liba can depend on libb, but not the other way around. The
    way make-tinyssh.sh constructs the libs variable from the
    LIBS environment variable should not reverse the order.
    Also, local libs like libtinysshcrypto.a should be listed
    first, so they correctly resolve local symbols (this is
    important when linking against skalibs, which exports symbols
    like uint32_unpack_big() with a different signature).
    
    Signed-off-by: default avatarLaurent Bercot <ska@appnovation.com>
Loading