This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
DOS djgpp updates:
[perl5.git] / hints / dos_djgpp.sh
1 # hints file for dos/djgpp v2.xx
2 # Original by Laszlo Molnar <molnarl@cdata.tvnet.hu>
3
4 # 971015 - archname changed from 'djgpp' to 'dos-djgpp'
5 # 971210 - threads support
6
7 archname='dos-djgpp'
8 archobjs='djgpp.o'
9 path_sep=\;
10 startsh="#!sh"
11
12 cc='gcc'
13 ld='gcc'
14 usrinc="$DJDIR/include"
15
16 libpth="$DJDIR/lib"
17 libc="$libpth/libc.a"
18
19 so='none'
20 usedl='n'
21
22 firstmakefile='GNUmakefile'
23 exe_ext='.exe'
24
25 randbits=31
26
27 ln='cp'             # no REAL ln on dos
28 lns='cp'
29
30 usenm='true'
31 d_bincompat3='undef'
32
33 d_link='undef'      # these are empty functions in libc.a
34 d_symlink='undef'
35 d_fork='undef'
36 d_pipe='undef'
37
38 startperl='#!perl'
39
40 case "X$optimize" in
41   X)
42         optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
43         ;;
44 esac
45 ldflags='-s'
46 usemymalloc='n'
47 timetype='time_t'
48
49 prefix=$DJDIR
50 privlib=$prefix/lib/perl5
51 archlib=$privlib
52 sitelib=$privlib/site
53 sitearch=$sitelib
54
55 eagain='EAGAIN'
56 rd_nodata='-1'
57
58 : set up the translation script tr
59
60 cat > UU/tr <<EOSC
61 $startsh
62 case "\$1\$2" in
63 '[A-Z][a-z]') exec tr.exe '[:upper:]' '[:lower:]';;
64 '[a-z][A-Z]') exec tr.exe '[:lower:]' '[:upper:]';;
65 esac
66 exec tr.exe "\$@"
67 EOSC
68
69 if [ "X$usethreads" != "X" ]; then
70     set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
71     shift
72     libswanted="$*"
73 fi