$NetBSD: patch-ab,v 1.9 2009/01/22 07:27:28 jmmv Exp $

--- Makefile.target.orig	2008-01-06 20:38:41.000000000 +0100
+++ Makefile.target
@@ -115,6 +115,10 @@ OP_CFLAGS+=$(call cc-option, -fno-align-
 OP_CFLAGS+=$(call cc-option, -fno-align-functions, $(call cc-option, -malign-functions=0, ""))
 OP_CFLAGS+=$(call cc-option, -fno-section-anchors, "")
 
+ifdef STACK_PROTECTOR_PRESENT
+OP_CFLAGS+=$(call cc-option, -fno-stack-protector, "")
+endif
+
 ifeq ($(ARCH),i386)
 HELPER_CFLAGS+=-fomit-frame-pointer
 OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer
@@ -537,7 +541,9 @@ endif
 ifndef CONFIG_DARWIN
 ifndef CONFIG_WIN32
 ifndef CONFIG_SOLARIS
-VL_LIBS+=-lutil
+ifndef CONFIG_DRAGONFLY
+VL_LIBS+=-lutil -lrt
+endif
 endif
 endif
 endif
