Cross-compiling GPGME

Milo gnupg at oneiroi.net
Thu Jun 28 19:07:22 CEST 2012


Hi Robert.

On 06/28/2012 06:40 AM, Robert J. Hansen wrote:
>
> (...)
>
> ... Does anyone have any guidance for me here?  I know that GPG4WIN is
> built on a Linux system with a cross-compiler: how do the maintainers
> build GPGME (and libassuan)?

Went well in my case. Little help but...:

libtool: link:  i686-w64-mingw32-gcc -shared .libs/libassuan-0.dll.def 
.libs/libassuan_la-assuan.o .libs/libassuan_la-context.o 
.libs/libassuan_la-system.o .libs/libassuan_la-debug.o 
.libs/libassuan_la-conversion.o .libs/libassuan_la-sysutils.o 
.libs/libassuan_la-client.o .libs/libassuan_la-server.o 
.libs/libassuan_la-assuan-error.o .libs/libassuan_la-assuan-buffer.o 
.libs/libassuan_la-assuan-handler.o .libs/libassuan_la-assuan-inquire.o 
.libs/libassuan_la-assuan-listen.o 
.libs/libassuan_la-assuan-pipe-server.o 
.libs/libassuan_la-assuan-socket-server.o 
.libs/libassuan_la-assuan-pipe-connect.o 
.libs/libassuan_la-assuan-socket-connect.o 
.libs/libassuan_la-assuan-uds.o .libs/libassuan_la-assuan-logging.o 
.libs/libassuan_la-assuan-socket.o .libs/libassuan_la-system-w32.o 
.libs/libassuan_la-assuan-io.o .libs/putc_unlocked.o .libs/memrchr.o 
.libs/stpcpy.o .libs/setenv.o .libs/vasprintf.o 
-L/srcs/libgpg-error-1.10/build/lib -lws2_32 
/srcs/libgpg-error-1.10/build/lib/libgpg-error.dll.a  -O2 
-Wl,.libs/versioninfo.o   -o .libs/libassuan-0.dll 
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker 
.libs/libassuan.dll.a

This (not mentioning `prefix') was given for cross-compilation of 
libgpg-error-1.10:

--host=i686-w64-mingw32 --target=mingw

and this for libassuan-2.0.3:

./configure --host=i686-w64-mingw32 --target=mingw

For last I also exported to PATH bin directory with gpg-error-config 
from build mentioned above.

Tools used:

binutils-mingw-w64-i686			2.22-2ubuntu1+1
binutils-mingw-w64-x86-64		2.22-2ubuntu1+1
gcc-mingw-w64				4.6.3-1ubuntu5+5ubuntu1
gcc-mingw-w64-base			4.6.3-1ubuntu5+5ubuntu1
gcc-mingw-w64-i686			4.6.3-1ubuntu5+5ubuntu1
gcc-mingw-w64-x86-64			4.6.3-1ubuntu5+5ubuntu1
mingw-w64				2.0.1-1
mingw-w64-dev				2.0.1-1
mingw-w64-tools				2.0.1-1
mingw32-runtime				3.15.2-0ubuntu1

> (...)
>

-- 
Regards,
Milo



More information about the Gnupg-users mailing list