$OpenBSD: patch-lib_common_Makefile,v 1.1 2005/12/31 14:32:14 sturm Exp $
--- lib/common/Makefile.orig	Sat Dec 31 14:30:53 2005
+++ lib/common/Makefile	Sat Dec 31 14:31:12 2005
@@ -56,7 +56,8 @@ SUBDIRS=
 # rule to create .o files from .c files 
 .c.o:
 	$(RM) $@
-	$(CC) $(CFLAGS) -DVERSION=$(VERSION) $(CPPFLAGS) $(INCLUDES) -c $<
+	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -DVERSION=$(VERSION) \
+		$(CPPFLAGS) $(INCLUDES) -c $<
 
 # targets to build
 all: $(TARGET)
