$OpenBSD: patch-tools_acpiexec_Makefile,v 1.2 2012/01/11 02:35:14 sthen Exp $
--- tools/acpiexec/Makefile.orig	Wed Nov 23 16:22:35 2011
+++ tools/acpiexec/Makefile	Wed Jan 11 00:32:00 2012
@@ -22,7 +22,7 @@ PROG = acpiexec
 HOST =          _LINUX
 NOMAN =         YES
 COMPILE =       $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $<
-LDFLAGS +=      -lpthread -lrt
+LDFLAGS +=      -pthread
 
 ACPICA_COMPONENTS =
 ACPICA_SRC =            ../..
@@ -257,16 +257,10 @@ CWARNINGFLAGS += \
     -Waddress \
     -Waggregate-return \
     -Wchar-subscripts \
-    -Wempty-body \
-    -Wlogical-op \
     -Wmissing-declarations \
     -Wmissing-field-initializers \
-    -Wmissing-parameter-type \
     -Wnested-externs \
-    -Wold-style-declaration \
-    -Wold-style-definition \
-    -Wredundant-decls \
-    -Wtype-limits
+    -Wold-style-definition
 
 #
 # Rules
