From: H.Merijn Brand Date: Sat, 18 Apr 2009 14:55:34 +0000 (+0200) Subject: Here are some patches for QNX6 against 5.10.x. Unpatched and patched X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=58ccccf6974c5065b1e46a35535f9539731d055a;p=p5sagit%2Fp5-mst-13.2.git Here are some patches for QNX6 against 5.10.x. Unpatched and patched smoke reports also attached. From: Sean Boudreau Date: Sun, 12 Apr 2009 10:18:39 -0400 Message-ID: <20090412141839.GA27971644@qnx.com> --- diff --git a/hints/qnx.sh b/hints/qnx.sh index 3ef2f32..473815c 100644 --- a/hints/qnx.sh +++ b/hints/qnx.sh @@ -242,7 +242,7 @@ if [ "$osname" = "qnx" ]; then else # $^O eq nto - ccflags='-DDLOPEN_WONT_DO_RELATIVE_PATHS' + ccflags='-U__STRICT_ANSI__' # Options required to get dynamic linking to work lddlflags='-shared' @@ -259,7 +259,10 @@ else # If we use perl's malloc, it dies with an invalid sbrk. # This is probably worth tracking down someday. usemymalloc='false' + + libswanted=`echo " $libswanted "| sed 's/ malloc / /'` - # crypt isn't detected in the C library even though it's there. - d_crypt='define' + # Some routines are only in our static libc. + # eg crypt() getlogin() getlogin_r() + usenm=false fi diff --git a/lib/Cwd.pm b/lib/Cwd.pm index 83239bf..8121231 100644 --- a/lib/Cwd.pm +++ b/lib/Cwd.pm @@ -289,6 +289,7 @@ my %METHOD_MAP = abs_path => 'fast_abs_path', }, + # QNX4. QNX6 has a $os of 'nto'. qnx => { cwd => '_qnx_cwd', @@ -327,7 +328,6 @@ my %METHOD_MAP = ); $METHOD_MAP{NT} = $METHOD_MAP{MSWin32}; -$METHOD_MAP{nto} = $METHOD_MAP{qnx}; # Find the pwd command in the expected locations. We assume these diff --git a/lib/Module/Build.pm b/lib/Module/Build.pm index e8bf0c6..fe453b5 100644 --- a/lib/Module/Build.pm +++ b/lib/Module/Build.pm @@ -54,6 +54,7 @@ my %OSTYPES = qw( interix Unix gnu Unix gnukfreebsd Unix + nto Unix dos Windows MSWin32 Windows