Re: Cross-compile of 3rd-party extensions fails

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
Subject: Re: Cross-compile of 3rd-party extensions fails
Date: 2011-09-19 08:54:35
Message-ID: 4E77034B.80405@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011-09-19 10:27 keltezéssel, Peter Eisentraut írta:
> On mån, 2011-09-19 at 10:16 +0200, Boszormenyi Zoltan wrote:
>> [zozo(at)localhost postgis-1.5.3]$ mingw64-make
>>
>> make -C liblwgeom
>> make[1]: Entering directory `/home/zozo/Schönig-számlák/w64/nsis/9.0/postgis-1.5.3/liblwgeom'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory `/home/zozo/Schönig-számlák/w64/nsis/9.0/postgis-1.5.3/liblwgeom'
>> make -C postgis
>> make[1]: Entering directory `/home/zozo/Schönig-számlák/w64/nsis/9.0/postgis-1.5.3/postgis'
>> /home/zozo/.wine/dosdevices/z:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.port:63:
>> *** target pattern contains no `%'. Stop.
>> make[1]: Leaving directory `/home/zozo/Schönig-számlák/w64/nsis/9.0/postgis-1.5.3/postgis'
>> make: *** [postgis] Error 2
> Having a colon in a file name is not going to work with make.

Actually, it does work nicely. make has problems with a colon in the body of
a target name (IIRC, it's invalid, anyway but may be accepted if escaped),
but it doesn't complain if the filesystem give it filenames with colons in them.

What it really complains about it the "win32ver.rc:" target in the Makefile.port.

For cross-compiling postGIS, turns out that I only need the attached
patches applied in
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/postgresql/pgxs/src
on the PostgreSQL side along with similar
OPTION = $(winepath -u `$PG_CONFIG --option` | dos2unix)
treatments in the configure.ac where needed.

Best regards,
Zoltán Böszörményi

--
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.de
http://www.postgresql.at/

Attachment Content-Type Size
Makefile.global.patch text/plain 1.3 KB
Makefile.port.patch text/plain 961 bytes

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kerem Kat 2011-09-19 08:57:03 Re: Adding CORRESPONDING to Set Operations
Previous Message Marko Kreen 2011-09-19 08:53:34 Re: Cross-compile of 3rd-party extensions fails