Skip to content

Commit

Permalink
cbt: Move libuuid linking
Browse files Browse the repository at this point in the history
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 <jandryuk@gmail.com>
  • Loading branch information
jandryuk committed Nov 27, 2023
1 parent 8baa12d commit 498a124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cbt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ sbin_PROGRAMS = cbt-util
noinst_LTLIBRARIES = libcbtutil.la

libcbtutil_la_SOURCES = cbt-util.c
libcbtutil_la_LIBADD = -luuid

cbt_util_SOURCES = main.c
cbt_util_LDADD = -lrt -luuid libcbtutil.la
cbt_util_LDADD = -lrt libcbtutil.la

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

0 comments on commit 498a124

Please sign in to comment.