X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fqnx.sh;h=f7f80538c1f961bf6bf62b5533444373fe98fa95;hb=4ea8010ab3e95796683d1a69375c8df8c4bea3fb;hp=e4469a176ac26f7c74bbb2414b84194352657259;hpb=be8a15fc9d0d9428f2fb14cc2ecbc0306b52e030;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/qnx.sh b/hints/qnx.sh index e4469a1..f7f8053 100644 --- a/hints/qnx.sh +++ b/hints/qnx.sh @@ -55,7 +55,7 @@ # they both point to the correct library, that is, # /usr/tcptk/current/usr/lib/socket3r.lib. # -# ext/Cwd/Cwd.t will complain if `pwd` and cwd don't give +# cpan/Cwd/Cwd.t will complain if `pwd` and cwd don't give # the same results. cwd calls `fullpath -t`, so if you # cd `fullpath -t` before running the test, it will # pass. @@ -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' @@ -253,7 +253,16 @@ else # recognize that option, so we're better off setting cc=gcc. cc='gcc' + # gcc uses $QNX_TARGET/usr/include as the include directory. + usrinc="$QNX_TARGET/usr/include" + # 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 / /'` + + # Some routines are only in our static libc. + # eg crypt() getlogin() getlogin_r() + usenm=false fi