Skip to content

Commit e4c23fa

Browse files
dixyesnikic
authored andcommitted
Add haiku shared objects support in libtool
1 parent 51a504c commit e4c23fa

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

build/libtool.m4

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ else
10271027
lt_cv_dlopen_libs=
10281028
10291029
case $host_os in
1030-
beos*)
1030+
beos* | haiku*)
10311031
lt_cv_dlopen="load_add_on"
10321032
lt_cv_dlopen_libs=
10331033
lt_cv_dlopen_self=yes
@@ -1438,6 +1438,17 @@ beos*)
14381438
shlibpath_var=LIBRARY_PATH
14391439
;;
14401440
1441+
haiku*)
1442+
# Since haiku provides gcc, use GNU style here
1443+
version_type=linux
1444+
need_lib_prefix=no
1445+
need_version=no
1446+
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1447+
soname_spec='${libname}${release}${shared_ext}$major'
1448+
shlibpath_var=LIBRARY_PATH
1449+
hardcode_into_libs=yes
1450+
;;
1451+
14411452
bsdi[[45]]*)
14421453
version_type=linux
14431454
need_version=no
@@ -2390,7 +2401,7 @@ aix[[4-9]]*)
23902401
lt_cv_deplibs_check_method=pass_all
23912402
;;
23922403
2393-
beos*)
2404+
beos* | haiku*)
23942405
lt_cv_deplibs_check_method=pass_all
23952406
;;
23962407
@@ -2616,7 +2627,7 @@ AC_DEFUN([AC_CHECK_LIBM],
26162627
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
26172628
LIBM=
26182629
case $host in
2619-
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2630+
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*)
26202631
# These system don't have libm, or don't need it
26212632
;;
26222633
*-ncr-sysv4.3*)
@@ -4756,7 +4767,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
47564767
# like `-m68040'.
47574768
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
47584769
;;
4759-
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4770+
beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47604771
# PIC is the default for these OSes.
47614772
;;
47624773
mingw* | cygwin* | os2* | pw32*)
@@ -5045,7 +5056,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
50455056
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
50465057
;;
50475058
5048-
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5059+
beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
50495060
# PIC is the default for these OSes.
50505061
;;
50515062

0 commit comments

Comments
 (0)