diff options
author | root <root@rshg047.dnsready.net> | 2011-04-27 22:24:53 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-27 22:24:53 +0000 |
commit | 18d6577d511b9a1ac36eaae50060133a401e42a3 (patch) | |
tree | f681f9444a7a0a95916de40af82d3b805d5fb8d3 /community/mingw32-gcc/PKGBUILD | |
parent | 69e1fada8bdc9588d0a3d8bc3403fa809d809a84 (diff) |
Wed Apr 27 22:24:53 UTC 2011
Diffstat (limited to 'community/mingw32-gcc/PKGBUILD')
-rw-r--r-- | community/mingw32-gcc/PKGBUILD | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/community/mingw32-gcc/PKGBUILD b/community/mingw32-gcc/PKGBUILD index c21c04680..e641c24a1 100644 --- a/community/mingw32-gcc/PKGBUILD +++ b/community/mingw32-gcc/PKGBUILD @@ -1,16 +1,16 @@ -# $Id: PKGBUILD 39743 2011-02-15 21:13:52Z spupykin $ +# $Id: PKGBUILD 45471 2011-04-22 05:36:00Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Ondrej Jirman <megous@megous.com> pkgname=mingw32-gcc pkgver=4.5.2 -pkgrel=2 +pkgrel=3 arch=(i686 x86_64) pkgdesc="A C and C++ cross-compilers for building Windows executables on Linux" -depends=(mingw32-runtime mingw32-binutils mingw32-w32api libmpc elfutils cloog-ppl gmp) +depends=(mingw32-runtime mingw32-binutils mingw32-w32api libmpc elfutils gmp) replaces=(mingw32-gcc-base) provides=(mingw32-gcc-base) -options=(!strip force) +options=(!strip) url="http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GCC/Version4/" license=(GPL LGPL) source=(gcc-$pkgver-1-mingw32-src.tar.xz::http://downloads.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-$pkgver-1/gcc-$pkgver-1-mingw32-src.tar.lzma) @@ -29,7 +29,8 @@ build() chmod ugo+x $srcdir/gcc-$pkgver/configure chmod ugo+x $srcdir/gcc-$pkgver/move-if-change - [ $NOEXTRACT -eq 1 ] || $srcdir/gcc-$pkgver/configure \ + msg "gcc" + [ -f Makefile ] || $srcdir/gcc-$pkgver/configure \ --target=i486-mingw32 \ --host=$CHOST \ --build=$CHOST \ @@ -39,16 +40,37 @@ build() --enable-sjlj-exceptions \ --enable-hash-synchronization \ --disable-nls \ - --disable-libssp \ + --disable-libssp make make install DESTDIR=$pkgdir + msg "libgcc" make -j1 -C i486-mingw32/libgcc DESTDIR=${pkgdir} libgcc_eh.a install + + msg "libstdc++" make -j1 -C i486-mingw32/libstdc++-v3 DESTDIR=${pkgdir} install +# msg "libgomp" +# mkdir -p i486-mingw32/libgomp +# cd i486-mingw32/libgomp +# [ -f Makefile ] || $srcdir/gcc-$pkgver/configure \ +# --target=i486-mingw32 \ +# --host=$CHOST \ +# --build=$CHOST \ +# --prefix=/usr \ +# --enable-languages=c,c++ \ +# --enable-shared \ +# --enable-sjlj-exceptions \ +# --enable-hash-synchronization \ +# --disable-nls \ +# --disable-libssp +# make -j1 DESTDIR=$pkgdir all install + + msg "fixes" mkdir -p $pkgdir/usr/i486-mingw32/bin/ - mv $pkgdir/usr/bin/*.dll $pkgdir/*.dll $pkgdir/usr/i486-mingw32/bin/ + mv $pkgdir/usr/bin/*.dll $pkgdir/usr/i486-mingw32/bin/ + mv $pkgdir/*.dll $pkgdir/usr/i486-mingw32/bin/ cd $pkgdir rm -rf usr/bin/i486-mingw32-{gcov,gccbug,gcc-*} \ |