diff options
author | Emil Velikov | 2016-01-27 05:59:43 -0600 |
---|---|---|
committer | Emil Velikov | 2016-01-27 17:12:09 -0600 |
commit | 432e08de88a27313608cced27f133a65e8a56c52 (patch) | |
tree | 126f7ad5c1683992a0d482f7c3a1b5ef683d7a54 | |
parent | ff0c9caa8e1e076b82241304dfd19d5b3e2a2aec (diff) | |
download | libdrm-432e08de88a27313608cced27f133a65e8a56c52.tar.gz libdrm-432e08de88a27313608cced27f133a65e8a56c52.tar.xz libdrm-432e08de88a27313608cced27f133a65e8a56c52.zip |
tests/kmstest: inverse the order of LDADD libraries
The utils library depends on libdrm. Flip the order, orderwise we might
error during link stage like below:
CC main.o
CCLD kmstest
/usr/bin/ld: ../../tests/util/.libs/libutil.a(libutil_la-kms.o):
undefined reference to symbol 'drmOpen'
Reported-by: Tom Stellard <thomas.stellard@amd.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r-- | tests/kmstest/Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kmstest/Makefile.am b/tests/kmstest/Makefile.am index 100662e4..ced541b7 100644 --- a/tests/kmstest/Makefile.am +++ b/tests/kmstest/Makefile.am | |||
@@ -17,9 +17,9 @@ kmstest_SOURCES = \ | |||
17 | main.c | 17 | main.c |
18 | 18 | ||
19 | kmstest_LDADD = \ | 19 | kmstest_LDADD = \ |
20 | $(top_builddir)/libdrm.la \ | 20 | $(top_builddir)/tests/util/libutil.la \ |
21 | $(top_builddir)/libkms/libkms.la \ | 21 | $(top_builddir)/libkms/libkms.la \ |
22 | $(top_builddir)/tests/util/libutil.la | 22 | $(top_builddir)/libdrm.la |
23 | 23 | ||
24 | run: kmstest | 24 | run: kmstest |
25 | ./kmstest | 25 | ./kmstest |