Skip to content

Commit 498a124

Browse files
committed
cbt: Move libuuid linking
OpenXT, using OpenEmbedded Dundell, fails to link cbt-util with errors like: ld: ./.libs/libcbtutil.a(cbt-util.o): in function `cbt_util_set': ld: cbt/cbt-util.c:360: undefined reference to `uuid_parse' libcbtutil.a/cbt-util.c reference the uuid funtions, and main.c doesn't have any references. Move the linking to the library to resolve the issue. Signed-off-by: Jason Andryuk <[email protected]>
1 parent 8baa12d commit 498a124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cbt/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ sbin_PROGRAMS = cbt-util
99
noinst_LTLIBRARIES = libcbtutil.la
1010

1111
libcbtutil_la_SOURCES = cbt-util.c
12+
libcbtutil_la_LIBADD = -luuid
1213

1314
cbt_util_SOURCES = main.c
14-
cbt_util_LDADD = -lrt -luuid libcbtutil.la
15+
cbt_util_LDADD = -lrt libcbtutil.la
1516

1617
clean-local:
1718
-rm -rf *.gc??

0 commit comments

Comments
 (0)