$OpenBSD: patch-jdk_make_common_shared_Compiler-gcc_gmk,v 1.3 2009/05/23 03:03:25 kurt Exp $
--- jdk/make/common/shared/Compiler-gcc.gmk.orig	Fri May  8 03:34:14 2009
+++ jdk/make/common/shared/Compiler-gcc.gmk	Mon May 18 11:18:32 2009
@@ -72,6 +72,24 @@ ifeq ($(PLATFORM), linux)
 
 endif
 
+ifeq ($(PLATFORM), bsd)
+
+  # Settings specific to BSD
+  CC             = $(COMPILER_PATH)gcc
+  CPP            = $(COMPILER_PATH)gcc -E
+  CXX            = $(COMPILER_PATH)g++
+  REQUIRED_CC_VER = 3.2
+
+  # Option used to create a shared library
+  # Option used to create a shared library
+  ifeq ($(OS_VENDOR), Apple)
+    SHARED_LIBRARY_FLAG = -dynamiclib 
+  else
+    SHARED_LIBRARY_FLAG = -shared
+  endif
+  SUN_COMP_VER := $(shell $(CC) --verbose 2>&1 )
+endif
+
 ifeq ($(PLATFORM), solaris)
 
   # Settings specific to Solaris
