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