OpenVMS updates by colin@theblakes.com
authorsrinivas%netscape.com
Fri, 22 Oct 1999 21:06:08 +0000
changeset 906 760c11b4f7c29791760397e247cac80f4fe0ffb6
parent 905 50b4535adee8cb607736597f33e2d1da38d0ff27
child 907 d5faffb95469be5728f8150351c7d8c3ccd5c086
push idunknown
push userunknown
push dateunknown
OpenVMS updates by colin@theblakes.com
config/OpenVMS.mk
pr/include/md/_openvms.h
--- a/config/OpenVMS.mk
+++ b/config/OpenVMS.mk
@@ -29,12 +29,23 @@ else
 CC			= ccc
 CCC			= ccc
 endif
 
 RANLIB			= /bin/true
 
 CPU_ARCH_TAG		= _$(CPU_ARCH)
 
-OS_CFLAGS		= -DVMS -DGENERIC_PTHREAD_REDEFINES
+OS_CFLAGS              = -DVMS -DVMS_AS_IS -Wc,names=\(short,as\) \
+                         -DGENERIC_PTHREAD_REDEFINES
+OS_CXXFLAGS            = -DVMS -DVMS_AS_IS -Wc,names=\(short,as\) \
+                         -DGENERIC_PTHREAD_REDEFINES
+
+#
+# XCFLAGS are the only CFLAGS that are used during a link operation. Defining
+# OPTIMIZER in XCFLAGS means that each compilation line gets OPTIMIZER
+# included twice, but at least we get OPTIMIZER included in the link
+# operations; and OpenVMS needs it!
+#
+XCFLAGS                        += $(OPTIMIZER)
 
 # The command to build a shared library in POSIX on OpenVMS.
 MKSHLIB = vmsld $(OPTIMIZER)
--- a/pr/include/md/_openvms.h
+++ b/pr/include/md/_openvms.h
@@ -30,17 +30,17 @@
 
 #define PR_LINKER_ARCH	"OpenVMS"
 #define _PR_SI_SYSNAME	"OpenVMS"
 #ifdef __alpha
 #define _PR_SI_ARCHITECTURE "alpha"
 #else
 #define _PR_SI_ARCHITECTURE "vax"
 #endif
-#define PR_DLL_SUFFIX		".exe"
+#define PR_DLL_SUFFIX		".so"
 
 #define _PR_VMBASE		0x30000000
 #define _PR_STACK_VMBASE	0x50000000
 #define _MD_DEFAULT_STACK_SIZE	131072L
 
 /*
 ** This is not defined on OpenVMS. I believe its only used in GC code, and
 ** isn't that only used in Java? Anyway, for now, let's keep the compiler