26bb28fb63
Don't override user CFLAGS. Bump revision.
23 lines
842 B
Text
23 lines
842 B
Text
$NetBSD: patch-ah,v 1.2 2008/09/17 14:04:54 joerg Exp $
|
|
|
|
--- libv4l2/Makefile.orig 2008-08-26 14:32:39.000000000 +0200
|
|
+++ libv4l2/Makefile
|
|
@@ -1,8 +1,6 @@
|
|
override CPPFLAGS += -I../include -I../../../../linux/include -fvisibility=hidden
|
|
|
|
-CFLAGS := -g -O1
|
|
-CFLAGS += -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
|
|
-
|
|
+LDFLAGS = -Wl,-R$(LIBDIR)
|
|
LIBS = -lpthread
|
|
|
|
V4L2_OBJS = libv4l2.o log.o
|
|
@@ -46,7 +44,7 @@ libv4l2.pc:
|
|
@echo 'Description: v4l2 device access library' >> libv4l2.pc
|
|
@echo 'Version: '$(V4L2_LIB_VERSION) >> libv4l2.pc
|
|
@echo 'Requires: libv4lconvert' >> libv4l2.pc
|
|
- @echo 'Libs: -L$${libdir} -lv4l2' >> libv4l2.pc
|
|
+ @echo 'Libs: -L$${libdir} -Wl,-R$${libdir} -lv4l2' >> libv4l2.pc
|
|
@echo 'Libs.private: -lpthread' >> libv4l2.pc
|
|
@echo 'Cflags: -I$${prefix}/include' >> libv4l2.pc
|
|
|