diff options
author | hans@localhost.localdomain <hans@localhost.localdomain> | 2008-08-03 13:21:19 +0200 |
---|---|---|
committer | hans@localhost.localdomain <hans@localhost.localdomain> | 2008-08-03 13:21:19 +0200 |
commit | 3dbcf4e987933e8e41ff496e76223f457a7609e5 (patch) | |
tree | b8c62f23f3c4812079475a7e7ccf90a1859e0249 | |
parent | 1d60339ee5ca9a861de510dc4c57576ec9f2e5be (diff) | |
download | mediapointer-dvb-s2-3dbcf4e987933e8e41ff496e76223f457a7609e5.tar.gz mediapointer-dvb-s2-3dbcf4e987933e8e41ff496e76223f457a7609e5.tar.bz2 |
libv4l: link against pthread
From: Hans de Goede <j.w.r.degoede@hhs.nl>
libv4l: link against pthread
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
-rw-r--r-- | v4l2-apps/lib/libv4l/libv4l1/Makefile | 4 | ||||
-rw-r--r-- | v4l2-apps/lib/libv4l/libv4l2/Makefile | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4l1/Makefile b/v4l2-apps/lib/libv4l/libv4l1/Makefile index bedd4391f..c92731daa 100644 --- a/v4l2-apps/lib/libv4l/libv4l1/Makefile +++ b/v4l2-apps/lib/libv4l/libv4l1/Makefile @@ -3,6 +3,8 @@ CPPFLAGS = -I../include -I../../../../linux/include CFLAGS := -g -O1 CFLAGS += -Wall -W -Wno-unused -Wpointer-arith -Wstrict-prototypes +LIBS = -lpthread + V4L1_OBJS = libv4l1.o log.o V4L1COMPAT = v4l1compat.so V4L1COMPAT_O = v4l1compat.o libv4l1.so @@ -73,7 +75,7 @@ clean:: $(CC) -c -MMD $(CPPFLAGS) $(CFLAGS) -o $@ $< %.so: - $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^ + $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^ $(LIBS) ln -f -s $@.$(LIB_RELEASE) $@ %.a: diff --git a/v4l2-apps/lib/libv4l/libv4l2/Makefile b/v4l2-apps/lib/libv4l/libv4l2/Makefile index 38449b44d..d8ac01c34 100644 --- a/v4l2-apps/lib/libv4l/libv4l2/Makefile +++ b/v4l2-apps/lib/libv4l/libv4l2/Makefile @@ -3,6 +3,8 @@ CPPFLAGS = -I../include -I../../../../linux/include CFLAGS := -g -O1 CFLAGS += -Wall -W -Wno-unused -Wpointer-arith -Wstrict-prototypes +LIBS = -lpthread + V4L2_OBJS = libv4l2.o log.o V4L2CONVERT = v4l2convert.so V4L2CONVERT_O = v4l2convert.o libv4l2.so @@ -72,7 +74,7 @@ clean:: $(CC) -c -MMD $(CPPFLAGS) $(CFLAGS) -o $@ $< %.so: - $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^ + $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^ $(LIBS) ln -f -s $@.$(LIB_RELEASE) $@ %.a: |