This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch] -Wall
[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
706de38c 6# 000222 - added -DPERL_EXTERNAL_GLOB to ccflags
39e571d4
LM
7
8archname='dos-djgpp'
9archobjs='djgpp.o'
10path_sep=\;
c4f23d77 11startsh="#! /bin/sh"
39e571d4
LM
12
13cc='gcc'
14ld='gcc'
15usrinc="$DJDIR/include"
16
17libpth="$DJDIR/lib"
18libc="$libpth/libc.a"
19
20so='none'
21usedl='n'
22
23firstmakefile='GNUmakefile'
24exe_ext='.exe'
25
26randbits=31
39e571d4
LM
27lns='cp'
28
29usenm='true'
39e571d4 30
151afd43
GS
31# this reportedly causes compile errors in system includes
32i_ieeefp='undef'
33
39e571d4
LM
34d_link='undef' # these are empty functions in libc.a
35d_symlink='undef'
36d_fork='undef'
37d_pipe='undef'
38
39startperl='#!perl'
40
41case "X$optimize" in
42 X)
9731c6ca 43 optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
7a9d1145
PFI
44 ldflags='-s'
45 ;;
46 X*)
47 ldflags=' '
39e571d4
LM
48 ;;
49esac
706de38c 50ccflags="$ccflags -DPERL_EXTERNAL_GLOB"
39e571d4
LM
51usemymalloc='n'
52timetype='time_t'
53
54prefix=$DJDIR
55privlib=$prefix/lib/perl5
56archlib=$privlib
57sitelib=$privlib/site
58sitearch=$sitelib
59
9e48b294
LM
60eagain='EAGAIN'
61rd_nodata='-1'
62
104d25b7
JH
63# This script UU/usethreads.cbu will get 'called-back' by Configure
64# after it has prompted the user for whether to use threads.
65cat > UU/usethreads.cbu <<'EOCBU'
66case "$usethreads" in
67$define|true|[yY]*)
68 set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'`
69 shift
70 libswanted="$*"
71 ;;
72esac
73EOCBU