Front page | perl.perl5.porters |
Postings from April 2007
Re: g++ on FreeBSD
Thread Previous
From:
Andy Dougherty
Date:
April 10, 2007 11:27
Subject:
Re: g++ on FreeBSD
Message ID:
Pine.LNX.4.62.0704101424470.19114@fractal.phys.lafayette.edu
On Tue, 10 Apr 2007, Andy Dougherty wrote:
> Anyway, see where this gets you:
>
> --- perl-current/hints/freebsd.sh Tue Apr 10 09:29:32 2007
> +++ perl-andy/hints/freebsd.sh Tue Apr 10 09:28:22 2007
> @@ -271,7 +271,9 @@
>
> # Configure will probably pick the wrong libc to use for nm scan.
> # The safest quick-fix is just to not use nm at all...
> - usenm=false
> + # However, if we are using g++, we don't have any choice.
> + # Respect a command-line override or a previous setting.
> + test -z "$usenm" && usenm=false
>
> case "$osvers" in
> 2.2.8*)
> >
Reading through perl.h, I'll bet you'll also need this, though I really
should make a proper Configure test one of these days.
--- perl-current/perl.h Fri Apr 6 08:15:50 2007
+++ perl-andy/perl.h Tue Apr 10 09:56:54 2007
@@ -1197,7 +1197,7 @@
EXTERN_C off_t ftello(FILE *);
#endif
-#if defined(__SUNPRO_CC) /* SUNWspro CC (C++) */
+#if defined(__SUNPRO_CC) || defined(__cplusplus) /* SUNWspro CC (C++) */
EXTERN_C char *crypt(const char *, const char *);
EXTERN_C char **environ;
#endif
--
Andy Dougherty doughera@lafayette.edu
Thread Previous