You are not logged in.

#1 2010-04-27 11:44:14

AugustePop
Member
Registered: 2010-04-27
Posts: 95

[SOLVED] how to pkgbuild interdependent mingw32 packages?

I am new to Archlinux and this is the first time i try to build with pkgbuild.

I want to use the mingw32 related packages to build native windows executables. When i installed mingw32-gcc and its dependencies with pacman, I noticed that the package is configured to generate code for i486 computers. As this little tool I am planning to write will definitely run on a i686 platform, i natually would like to build a i686 targeted mingw32 system.

I read the wiki files about ABS and pkgbuild, and followed the examples there. I created corresponding directories under my home folder, copied corresponding folders there, and changed all i486-mingw32 into i686-mingw32 in PKGBUILD files, and tried to build the packages. and then I found out that every mingw32 related package is interdependent with each other. If I use -s switch, pacman will install the unwanted dependencies in the wrong directory (i486-xxx not i686-xxx).

I understand that the process of building a cross-compiler is quite complex, which would require building the same package for more than once. and I thus understand that the interdepencies here is normal. However, with pkgbuild system, I have no idea of how to build the packages manually.

If you have any idea how to make it work, please kindly advice.

Last edited by AugustePop (2010-04-27 14:02:14)

Offline

#2 2010-04-27 13:26:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,427
Website

Re: [SOLVED] how to pkgbuild interdependent mingw32 packages?

Just add compiler flags...  i.e. "--march=i686"

Offline

#3 2010-04-27 14:00:36

AugustePop
Member
Registered: 2010-04-27
Posts: 95

Re: [SOLVED] how to pkgbuild interdependent mingw32 packages?

oops...

thank you. the i486 prefix is so misleading...

Offline

Board footer

Powered by FluxBB