Merge pull request #4 from davehome/master
Some fixes for the mingw-w64-{crt,gcc} packages.
This commit is contained in:
commit
f79e97b400
|
@ -36,7 +36,7 @@ else
|
|||
_multilib_args="--enable-lib32 --disable-lib64"
|
||||
fi
|
||||
|
||||
strip_cmd=${_mingwtriplet}-strip
|
||||
strip_cmd=${_mingwprefix}/bin/${_mingwtriplet}-strip
|
||||
|
||||
do_build()
|
||||
{
|
||||
|
@ -46,7 +46,9 @@ do_build()
|
|||
|
||||
cd ${wrksrc}/../$_shortname-v$_majversion-$_snapshot/$pkgname && \
|
||||
./configure --prefix=${_mingwprefix} --with-sysroot=${_mingwprefix} \
|
||||
--host=${_mingwtriplet} ${_multilib_args} --bindir=${_mingwprefix}/bin
|
||||
--host=${_mingwtriplet} ${_multilib_args} \
|
||||
--bindir=${_mingwprefix}/bin --libdir=${_mingwprefix}/lib \
|
||||
--libexecdir=${_mingwprefix}/lib
|
||||
|
||||
make ${makejobs}
|
||||
|
||||
|
@ -55,6 +57,13 @@ do_build()
|
|||
|
||||
do_install()
|
||||
{
|
||||
# This path setting is necessary so that it finds ${_mingwprefix}-ranlib
|
||||
unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS
|
||||
local SAVEDPATH=$PATH
|
||||
export PATH="/opt/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
|
||||
|
||||
cd ${wrksrc}/../$_shortname-v$_majversion-$_snapshot/$pkgname && \
|
||||
make DESTDIR=${DESTDIR} install
|
||||
|
||||
export PATH=$SAVEDPATH
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
pkgname=mingw-w64-gcc
|
||||
_majorver=4.6
|
||||
version=${_majorver}.1
|
||||
revision=1
|
||||
distfiles=http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2
|
||||
build_style=custom-install
|
||||
short_desc="The GNU C Compiler (for mingw-w64)"
|
||||
|
@ -25,7 +26,10 @@ Add_dependency run mpc
|
|||
Add_dependency run mpfr
|
||||
Add_dependency run zlib
|
||||
|
||||
Add_dependency build gcc-multilib
|
||||
if [ "${xbps_machine}" = "x86_64" ]; then
|
||||
Add_dependency build gcc-multilib
|
||||
fi
|
||||
|
||||
Add_dependency build flex
|
||||
Add_dependency build gawk
|
||||
|
||||
|
@ -71,7 +75,7 @@ do_build()
|
|||
--with-system-zlib --enable-static --disable-shared --enable-lto \
|
||||
--enable-linker-build-id --enable-gnu-unique-object \
|
||||
--enable-checking=release --disable-nls --disable-bootstrap \
|
||||
--libdir=${_mingwprefix}/lib
|
||||
--libdir=${_mingwprefix}/lib --libexecdir=${_mingwprefix}/lib
|
||||
|
||||
make ${makejobs} all-gcc
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user