b818b90f19
Fixes RELRO build
23 lines
841 B
Text
23 lines
841 B
Text
$NetBSD: patch-ah,v 1.3 2019/11/14 15:22:49 wiz 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
|
|
|