Re: plperl win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: plperl win32
Date: 2004-07-16 14:49:57
Message-ID: 200407161449.i6GEnvF09691@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Magnus, why is this reassignment needed, basically the 'else' part:

! ifeq ($(PORTNAME), win32)
! xperl_archlibexp=$(subst \,/,$(perl_archlibexp))
! xperl_privlibexp=$(subst \,/,$(perl_privlibexp))
! perl_embed_ldflags=-L $(xperl_archlibexp)/CORE -lperl58
! else
! xperl_archlibexp=$(perl_archlibxep)
! xperl_privlibexp=$(perl_privlibexp)
! endif

---------------------------------------------------------------------------

Magnus Hagander wrote:
> Here is a patch required to build plperl with win32. The issues were:
>
> * perl_useshrplib gets set to "yes" and not to "true". I assume it's set
> to "true" on unix, so I left both.
> * Need to translate backslashes into slashes
> * The linker config coming out of perl was for MSVC and not for mingw
>
>
> Some of this is pretty ugly stuff - the reassigning into a second
> variable etc. If somebody with a little better "makefile knowledge"
> would clean that up (if it can be, but it should be possible), please
> do!
>
>
> //Magnus
>
> <<plperl_win32.patch>>

Content-Description: plperl_win32.patch

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2004-07-16 15:36:12 Re: plperl win32
Previous Message Fabien COELHO 2004-07-16 14:34:36 pgxs: build infrastructure for extensions v4