Skip to content

Commit

Permalink
Fix building tests with gcc48
Browse files Browse the repository at this point in the history
/usr/local/bin/ld: pkg_printf.o: undefined reference to symbol 'sbuf_putc'
/usr/local/bin/ld: note: 'sbuf_putc' is defined in DSO //lib/libsbuf.so.5 so try adding it to the linker command line
//lib/libsbuf.so.5: could not read symbols: Invalid operation
  • Loading branch information
bdrewery committed Jul 4, 2013
1 parent c1fc835 commit ba51124
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pkg_printf_test_SRCS= pkg_printf.c
CFLAGS+= -DTESTING -I../../libpkg
LDADD+= -Wl,-rpath ${.CURDIR}/../../libpkg \
-L../../libpkg \
-lsbuf \
-lpkg

CLEANFILES+= pkg_printf.c
Expand Down

0 comments on commit ba51124

Please sign in to comment.