I tried to packaging winexe on clean Sid (debian unstable) installation.
I had one problem with winexe compilation:
[ 9/16] cprogram: build/winexesvc_launch.c.1.o
build/winexesvc_loop.c.1.o -> build/winexesvc32.exe
/usr/bin/i686-w64-mingw32-ld: "-z" option unrecognized
collect2: ld returned 1 exit status
Waf: Leaving directory `/root/winexe/source/build'
Build failed
-> task in 'winexesvc32.exe' failed (exit status 1):
{task 20082064: cprogram
winexesvc_launch.c.1.o,winexesvc_loop.c.1.o -> winexesvc32.exe}
['/usr/bin/i686-w64-mingw32-gcc', '-Wl,-z,relro', '-s',
'winexesvc_launch.c.1.o', 'winexesvc_loop.c.1.o', '-o',
'/root/winexe/source/build/winexesvc32.exe', '-Wl,-Bstatic',
'-Wl,-Bdynamic', '-luserenv']
-z option is missed on mingw ld but I not found where to remove it, I
did grep on winexe source without found '-Wl,-z,relro' options setting.
It still gives "the -z option missed" on winexesvc ld also with
DEB_BUILD_HARDENING_RELRO=0.
Is there something on winexe source that can force it?
Thanks for any reply
I do not get this error message when building on Debian with
/usr/bin/i686-w64-mingw32-gcc from gcc-mingw-w64-i686 and
/usr/bin/x86_64-w64-mingw32-gcc from gcc-mingw-w64-x86-64
where the latter packages are from Wheezy, version number 4.6.3-14+8.
I see that Debian unstable has new versions of these packages with number 4.6.4-4+9.
Last edit: Thomas Hood 2013-11-10
Ticket moved from /p/winexe/bugs/38/