1b79a18cd4
- get rid of libtool and thus rpath bugs - install libexec files as they're also needed - copy the crt files in lib/gcc/i386-mingw32/3.4.5 as the compiler looks for them in there and not in lib - disable shared and thus lose the platform specific files (noticed by jeremy@ as well) - adapt the README after these changes
35 lines
929 B
Plaintext
35 lines
929 B
Plaintext
$OpenBSD: README,v 1.2 2011/11/17 14:41:59 pirofti Exp $
|
|
|
|
+-----------------------------------------------------------------------
|
|
| Running ${FULLPKGNAME} on OpenBSD
|
|
+-----------------------------------------------------------------------
|
|
|
|
Environment Setup
|
|
=================
|
|
Set the mingw32 binary path before all the others. Like so:
|
|
|
|
$ export PATH=/usr/local/mingw32/bin:${PATH}
|
|
|
|
Generating PE files
|
|
===================
|
|
Just compile like you regulary would:
|
|
|
|
$ cat CreateFile_test.cpp
|
|
#include <windows.h>
|
|
|
|
int main (void)
|
|
{
|
|
HANDLE handle;
|
|
|
|
handle = CreateFile ("test.txt", GENERIC_READ | GENERIC_WRITE,
|
|
0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
|
|
|
return 0;
|
|
}
|
|
|
|
$ g++ -L/usr/local/mingw32/lib -I/usr/local/mingw32/include \
|
|
CreateFile_test.cpp -o CreateFile_test.exe
|
|
$ file CreateFile_test.exe
|
|
CreateFile_test.exe: MS-DOS executable PE for MS Windows (console)
|
|
Intel 80386 32-bit
|