Skip to content
Snippets Groups Projects
Commit 63c12c8b authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Only link libcompat with dump_video.

It's the only example that needs it.
Patch by 0brad0.
Fixes #1587.

svn path=/trunk/theora/; revision=17993
parent 6b94bf90
No related branches found
No related tags found
No related merge requests found
......@@ -549,7 +549,8 @@ dnl Check for library functions
dnl --------------------------------------------------
dnl OpenBSD needs -lcompat for ftime() used by dump_video.c
AC_SEARCH_LIBS([ftime], [compat])
AC_CHECK_LIB([compat], [ftime], [COMPAT_LIBS='-lcompat'])
AC_SUBST(COMPAT_LIBS)
dnl substitute the included getopt if the system doesn't support long options
AC_CHECK_FUNC(getopt_long,
......
......@@ -15,7 +15,7 @@ LDADDENC = ../lib/libtheoraenc.la ../lib/libtheoradec.la $(OGG_LIBS)
dump_video_SOURCES = dump_video.c
EXTRA_dump_video_SOURCES = getopt.c getopt1.c getopt.h
dump_video_LDADD = $(GETOPT_OBJS) $(LDADDDEC)
dump_video_LDADD = $(GETOPT_OBJS) $(LDADDDEC) $(COMPAT_LIBS)
dump_psnr_SOURCES = dump_psnr.c
EXTRA_dump_psnr_SOURCES = getopt.c getopt1.c getopt.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment