16 мая 2014 г., в 6:46, Jon <[email protected]> написал(а):

> I'd like to build a 32-bit static lib for msys2 rather than the msys-2.0.dll 
> from source at
> 
> git://git.code.sf.net/p/msys2/code
> 
> for use with my msys2 install on Win8.1 64-bit. The static lib must be usable 
> from the msys2 `mingw-w64-i686-gcc 4.9.0-4` package.

You need to understand that mingw-w64-i686-gcc and msys2-gcc is different 
compilers. Msys2-gcc is modified Cygwin GCC.
Building with msys2-gcc you always get dependency from msys-2.0.dll. At this 
time there are no static msys-2.0 library only shared.
The mingw-w64-i686-gcc is true native windows mingw-w64 toolchain.

> 
> My next step is to build patch.exe from the msys2 source and static link it 
> to msys2 and libgcc so there are no runtime dependencies on `msys-2.0.dll` 
> (115 symbols imported by patch.exe) or `msys-gcc_s-1.dll` (4 symbols imported 
> by patch.exe). I'm hoping the build results in a patch.exe with runtime deps 
> of only kernel32.dll and potentially msvcrt.dll.
> 
I think you need to port patch for mingw-w64.

> Is this possible with the current code in the msys2 repo? If yes, what is the 
> best way to get started?
> 
Update packages to latest:
pacman -Syu

First you may need additional  packages to be able build programs with 
autoconf/automake. I recommend to you install most used develop apps by:
pacman -S base-devel

You can run MSYS2 with mingw32_shell.bat and install mingw-w64 toolchain:
pacman -S mingw-w64-i686-toolchain

Then you be able use mingw-w64 compiler to try build any software that you want)
Don’t use  /usr or / as prefix for mingw programs because this is location only 
for msys2-packages.
By default I use /mingw32 or /mingw64 install prefixes for 32 and 64 bit 
mingw-packages.

> I'd like to be able to build the static libs on my Win8.1 box under msys2, 
> but I'm perfectly fine if I need to cross-build from either Arch or Ubuntu 
> Server. I only have 64-bit installs of those distros.
> 
> 
You can go to build from msys2)

Regards,
Alexey.

> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs_______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to