views:

69

answers:

1

When compiling with gmcs on Linux, how can I set the explorer icon the final EXE will use?

I have a .ico file to attach to the output exe.

The answer must be build-automatable and execute on Linux (w/o wine -- build machine architecture is not x86).

GCC and binutils targeting Windows x86 are available. If you give the answer referring to their short (non-cross) names I'll be able to figure out their cross names easily enough.

+1  A: 

Looks like it is done the same way as .Net (learned from looking at the output window of a build in Visual Studio):

/win32icon:my.ico

So something like this:

gmcs myprog.cs /win32icon:my.ico
jpobst