Mailing List Archive

C++ and minor bug with MakeMaker
Now that it is possible to make C++ extension in perl (the
announcement is waiting for perl.com to jump to life, I will resend it
soon since Tom should be away, meantime look in
ftp://ftp.math.ohio-state.edu/pub/users/ilya/perl),
I found problems with static build with GNU cc, since MakeMaker puts
something like

MAP_LINKCMD = $(CC) -Zexe -Zomf -Zcrtdll

into Makefile. Can we have $(LD) instead? In this case one may set
CC='gcc -x c++'.

Ilya
Re: C++ and minor bug with MakeMaker [ In reply to ]
In <199510110808.EAA11845@monk.mps.ohio-state.edu>
On Wed, 11 Oct 1995 04:08:04 -0400 (EDT)
Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
>Now that it is possible to make C++ extension in perl (the
>announcement is waiting for perl.com to jump to life, I will resend it
>soon since Tom should be away, meantime look in
> ftp://ftp.math.ohio-state.edu/pub/users/ilya/perl),
>I found problems with static build with GNU cc, since MakeMaker puts
>something like
>
>MAP_LINKCMD = $(CC) -Zexe -Zomf -Zcrtdll
>
>into Makefile. Can we have $(LD) instead? In this case one may set
>CC='gcc -x c++'.
>
There is a possible snag with using $(CC) to link on SunOS4 - $(CC)
has an implicit -lc which will link a shared libc.so.* to the extension
which will then fail to load as -lc is already loaded with perl and SunOS
is too dumb to just re-use it.