Zainstalowałem Debiana Jessie 64 bit a na nim mono-complete i gcc-mingw32 w celu statycznego zlinkowania Net Frameworka z moim programem.
Na Windows 7 w Cygwinie pisze "--static is not supported on this platform".
A na Debianie:
mkbundle example1.exe --static --deps -o file.exe
Kod: Zaznacz cały
OS is: Linux
Note that statically linking the LGPL Mono runtime has more licensing restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
Sources: 1
Auto-dependencies: True
embedding: /media/1/example1.exe
embedding: /usr/lib/mono/4.5/mscorlib.dll
embedding: /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
embedding: /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
embedding: /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
embedding: /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
embedding: /usr/lib/mono/gac/System.Security/4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
Compiling:
as -o temp.o temp.s
i686-w64-mingw32-gcc -U WIN32 -o file.exe -Wall `pkg-config --cflags mono-2` temp.c `pkg-config --libs-only-L mono-2` -Wl,-Bstatic -lmono-2.0 -Wl,-Bdynamic `pkg-config --libs-only-l mono-2 | sed -e "s/\-lmono-2.0 //"` temp.o
/usr/bin/i686/-w64-mingw32-ld: cannot find -lrt
/usr/bin/i686/-w64-mingw32-ld: cannot find -ldl
temp.o: file not recogniuzed: File format not recognized
collect2: error: ld returned 1 exit status
ERROR: [Fail]
Z góry dziękuje za pomoc.