This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Win32: try to make the new stat pre-Vista compatible
[perl5.git] / hints / haiku.sh
1 # Haiku hints file
2 # $Id$
3
4 case "$prefix" in
5 '') prefix="$(finddir B_COMMON_DIRECTORY)" ;;
6 *) ;; # pass the user supplied value through
7 esac
8
9 libpth="$(finddir B_USER_DEVELOP_DIRECTORY)/lib $(finddir B_SYSTEM_DEVELOP_DIRECTORY)/lib $(finddir B_COMMON_DIRECTORY)/lib /system/lib"
10 usrinc="$(finddir B_SYSTEM_DEVELOP_DIRECTORY)/headers/posix"
11 locinc="$(finddir B_USER_CONFIG_DIRECTORY)/develop/headers $(finddir B_COMMON_DIRECTORY)/headers $(finddir B_SYSTEM_DEVELOP_DIRECTORY)/headers"
12
13 libc="$(finddir B_SYSTEM_LIB_DIRECTORY)/libroot.so"
14 libs='-lnetwork'
15
16 # Use Haiku's malloc() by default.
17 case "$usemymalloc" in
18 '') usemymalloc='n' ;;
19 esac
20
21 # Haiku generally supports hard links, but the default file system (BFS)
22 # doesn't. So better avoid using hard links.
23 d_link='undef'
24 dont_use_nlink='define'
25
26 # The array syserrlst[] is useless for the most part.
27 # Large negative numbers really kind of suck in arrays.
28 d_syserrlst='undef'
29
30 # Haiku uses gcc.
31 cc="gcc"
32 ld='gcc'
33
34 ccflags="$ccflags -fno-stack-protector"
35
36 # The runtime loader library path variable is LIBRARY_PATH.
37 case "$ldlibpthname" in
38 '') ldlibpthname=LIBRARY_PATH ;;
39 esac
40
41 # as of alpha 4.1 (at the latest) some symbols are versioned,
42 # confusing the nm lookup
43 case "$usenm" in
44 '') usenm='undef' ;;
45 esac
46