This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Align to haiku ports (+ keep some extra) and set path dynamically
authorThibault DUPONCHELLE <thibault.duponchelle@gmail.com>
Sat, 13 Jun 2020 13:39:02 +0000 (15:39 +0200)
committerKarl Williamson <khw@cpan.org>
Thu, 30 Jul 2020 22:11:23 +0000 (16:11 -0600)
hints/haiku.sh

index fa8ebe5..806d3ca 100644 (file)
@@ -6,11 +6,12 @@ case "$prefix" in
 *) ;; # pass the user supplied value through
 esac
 
-libpth='/boot/home/config/lib /boot/common/lib /system/lib'
-usrinc='/boot/develop/headers/posix'
-locinc='/boot/home/config/include /boot/common/include /boot/develop/headers'
 
-libc='/system/lib/libroot.so'
+libpth="$(finddir B_USER_DEVELOP_DIRECTORY)/lib $(finddir B_SYSTEM_DEVELOP_DIRECTORY)/lib $(finddir B_COMMON_DIRECTORY)/lib /system/lib"
+usrinc="$(finddir B_SYSTEM_DEVELOP_DIRECTORY)/headers/posix"
+locinc="$(finddir B_USER_CONFIG_DIRECTORY)/develop/headers $(finddir B_COMMON_DIRECTORY)/headers $(finddir B_SYSTEM_DEVELOP_DIRECTORY)/headers"
+
+libc="$(finddir B_SYSTEM_LIB_DIRECTORY)/libroot.so"
 libs='-lnetwork'
 
 # Use Haiku's malloc() by default.