Support truncate() in VOS port
[p5sagit/p5-mst-13.2.git] / hints / vos.sh
index 10b4212..c06adba 100644 (file)
 
 # C compiler and default options.
 cc=gcc
-ccflags="-D_BSD_SOURCE -D_POSIX_C_SOURCE=199509L"
+ccflags="-D_SVID_SOURCE -D_POSIX_C_SOURCE=199509L"
 
 # Make command.
 make="/system/gnu_library/bin/gmake"
+# indented to not put it into config.sh
+  _make="/system/gnu_library/bin/gmake"
 
 # Architecture name
 archname="hppa1.1"
 
-# POSIX commands are here.
-# paths="/system/gnu_library/bin"
-
 # Executable suffix.
 # No, this is not a typo.  The ".pm" really is the native
 # executable suffix in VOS.  Talk about cosmic resonance.
@@ -43,6 +42,7 @@ locincpth="$locincpth /system/stcp/include_library/arpa"
 locincpth="$locincpth /system/stcp/include_library/net"
 locincpth="$locincpth /system/stcp/include_library/netinet"
 locincpth="$locincpth /system/stcp/include_library/protocols"
+locincpth="$locincpth /system/include_library/sysv"
 usrinc="/system/include_library"
 
 # Where to install perl5.
@@ -63,3 +63,22 @@ uselargefiles="n"
 # Don't use malloc that comes with perl.
 usemymalloc="n"
 
+# Make bison the default compiler-compiler.
+yacc="/system/gnu_library/bin/bison"
+
+# VOS doesn't have (or need) a pager, but perl needs one.
+pager="/system/gnu_library/bin/cat.pm"
+
+# VOS has a bug that causes _exit() to flush all files.
+# This confuses the tests.  Make 'em happy here.
+fflushNULL=define
+
+# VOS has a link() function but it is a dummy.
+d_link="undef"
+
+# VOS does not have truncate() but we supply one in vos.c
+d_truncate="define"
+archobjs="vos.o"
+
+# Help gmake find vos.c
+test -h vos.c || ln -s vos/vos.c vos.c