• Shuah Khan's avatar
    tools: Fix mqueue Makefile compile linking order · b80f5570
    Shuah Khan authored
    Makefile compile linking order is incorrect causing the compile
    to fail not finding librt symbols.
    
    /tmp/cceTqwFh.o: In function `test_queue_fail':
    mq_open_tests.c:(.text+0x6b): undefined reference to `mq_open'
    mq_open_tests.c:(.text+0x80): undefined reference to `mq_getattr'
    mq_open_tests.c:(.text+0xa2): undefined reference to `mq_close'
    mq_open_tests.c:(.text+0xcf): undefined reference to `mq_unlink'
    /tmp/cceTqwFh.o: In function `test_queue.constprop.6':
    mq_open_tests.c:(.text+0x15a): undefined reference to `mq_open'
    mq_open_tests.c:(.text+0x16f): undefined reference to `mq_getattr'
    mq_open_tests.c:(.text+0x195): undefined reference to `mq_close'
    mq_open_tests.c:(.text+0x1c2): undefined reference to `mq_unlink'
    /tmp/cceTqwFh.o: In function `shutdown.part.0':
    mq_open_tests.c:(.text.unlikely+0x5b): undefined reference to `mq_close'
    mq_open_tests.c:(.text.unlikely+0x7a): undefined reference to `mq_unlink'
    collect2: error: ld returned 1 exit status
    make: *** [all] Error 1
    Signed-off-by: default avatarShuah Khan <shuah.kh@samsung.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    b80f5570
Makefile 278 Bytes