$OpenBSD: patch-corba_make_common_shared_Compiler-gcc_gmk,v 1.2 2009/05/23 03:03:24 kurt Exp $
--- corba/make/common/shared/Compiler-gcc.gmk.orig	Fri May  8 03:29:39 2009
+++ corba/make/common/shared/Compiler-gcc.gmk	Thu May 14 23:15:23 2009
@@ -99,6 +99,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.3
+  REQUIRED_GCC_VER = 3.3.*
+
+# 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
