On Tue, 28 Aug 2007, Paolo Supino wrote:

> Hi
>  Thank you!!!
>  I had the feeling that the problem is in the Makefile.OpenBSD, but
> didn't know how to fix it. Doing what you suggested below solved the
> problem and I'm now able to build frickin proxy.
>
> Now I have to make it work ...
>
>
>
> TIA
> Paolo

For some reason, 4.1 /usr/share/mk/sys.mk lacks suffix rules
for .cpp  This can be fixed by duplicating and then appropriately
changing the set of rules for .cxx, and adding .cpp to the
list of suffixes near the top of sys.mk.  There may be reasons
not to do this, but I don't know them.

If you get the chance, inform the author of the proxy.

Dave

This patch seems to do the job:
 --------------------------------8<------------------------------
--- sys.mk.orig Tue May 22 04:09:58 2007
+++ sys.mk      Tue Aug 28 15:51:31 2007
@@ -14,7 +14,7 @@
 OSREV=         $(OSMAJOR).$(OSMINOR)
 OSrev=         $(OSMAJOR)$(OSMINOR)

-.SUFFIXES: .out .a .ln .o .c .cc .C .cxx .F .f .r .y .l .s .S .cl .p .h .sh
.m4
+.SUFFIXES: .out .a .ln .o .c .cc .C .cxx .F .f .r .y .l .s .S .cl .p .h .sh
.m4 .cpp

 .LIBS:         .a

@@ -121,6 +121,15 @@
 .cxx.o:
        ${COMPILE.cc} ${.IMPSRC}
 .cxx.a:
+       ${COMPILE.cc} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+.cpp:
+       ${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.cpp.o:
+       ${COMPILE.cc} ${.IMPSRC}
+.cpp.a:
        ${COMPILE.cc} ${.IMPSRC}
        ${AR} ${ARFLAGS} $@ $*.o
        rm -f $*.o

Reply via email to