$NetBSD: patch-cc,v 1.1.1.1 2002/02/13 18:09:22 mrauch Exp $

--- ../stlport/makefile.mk.orig	Tue Jan  1 14:12:01 2002
+++ ../stlport/makefile.mk
@@ -66,11 +66,17 @@
 TARGET=so_stlport
 
 .IF "$(STLPORT4)"!="NO_STLPORT4"
-all:
+all: $(INPATH)$/misc$/so_copied
+
+$(INPATH)$/misc$/so_copied:
         @echo "         An already available installatin of STLport has been chosen in the configure process."
         @echo "         Therefore the version provided here does not need to be built in addition."
 
-	+$(COPY) $(STLPORT4)$/lib$/*stlport*$(DLLPOST) $(DLLDEST)
+	+$(COPY) $(STLPORT4)$/lib$/*stlport_gcc$(DLLPOST)* $(DLLDEST)
+.IF "$(OS)"=="NETBSD"
+	+$(LINK) $(LINKFLAGSSHLCUI) $(STLPORT4)$/lib$/$(DLLPRE)stlport_gcc$(DLLPOST) -o $(DLLDEST)$/$(DLLPRE)stlport2_gcc$(DLLPOST) -lgcc
+.ENDIF
+	+$(TOUCH) $(INPATH)$/misc$/so_copied
 .ENDIF
 
 # --- Settings -----------------------------------------------------
