Date: Sat, 26 Dec 2020 12:00:15 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 237213] [NEW PORT] devel/mingw-w64 cross compilers Message-ID: <bug-237213-7788-HypaPlPiTm@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-237213-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-237213-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237213 --- Comment #26 from Alex S <iwtcex@gmail.com> --- I would be much better to throw WIP patches at https://reviews.freebsd.org. (In reply to Damjan Jovanovic from comment #24) I had to do the following adjustments to compile gcc: @@ -32,7 +32,7 @@ BUILD_DEPENDS+=3D ${LOCALBASE}/bin/as:devel/binutils RUN_DEPENDS+=3D ${LOCALBASE}/bin/as:devel/binutils .else -BUILD_RUN_DEPS=3D ${FLAVOR:C/_/-/g}-as:devel/binutils@${FLAVOR} \ +BUILD_RUN_DEPS=3D ${TARGETARCH}-as:devel/binutils@${FLAVOR} \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ${LOCALBASE}/${TARGETARCH}/mingw/include/windows.h:devel/mingw-w64-headers@= ${FLAVOR:S/_w64_mingw32//} \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ${LOCALBASE}/${TARGETARCH}/mingw/lib/libkernel32.a:devel/mingw-w64-crt@${FL= AVOR:S/_w64_mingw32//} BUILD_DEPENDS=3D ${BUILD_RUN_DEPS} \ @@ -54,8 +54,7 @@ GCC_VERSION=3D ${PORTVERSION} SUFFIX=3D ${PORTVERSION:C/([0-9]+).*/\1/} .if ${FLAVOR} !=3D native -TARGETARCHAMD64=3D${FLAVOR:S/amd64/x86_64/} -TARGETARCH=3D ${TARGETARCHAMD64:C/_/-/g} +TARGETARCH=3D ${FLAVOR:C/_/-/g:S/amd64/x86_64/} .endif SSP_UNSAFE=3D yes CFLAGS:=3D ${CFLAGS:N-mretpoline} @@ -202,7 +201,7 @@ ${RLN} ${STAGEDIR}${INSTALL_BASE}/bin/${FLAVOR:C/_/-/g}-$F${SUFFIX}= \ ${STAGEDIR}${PREFIX}/bin/${FLAVOR:C/_/-/g}-$F${SUFFIX} .endfor - ${RLN} ${STAGEDIR}${INSTALL_BASE}/bin/${FLAVOR:C/_/-/g}-gcc-${PORTVERSION} \ + ${RLN} ${STAGEDIR}${INSTALL_BASE}/bin/*-gcc-${PORTVERSION} \ ${STAGEDIR}${PREFIX}/bin/${FLAVOR:C/_/-/g}-gcc-${PORTVERSIO= N} cd ${STAGEDIR}${PREFIX} ; if [ -d ${TARGEARCH}/bin ]; then \ ${FIND} ${TARGETARCH}/bin -type f -o -type l >>${WRKDIR}/PLIST.= lib ;\ Different prefixes for gcc and binutils (amd64-w64-mingw32- and x86_64-w64-mingw32 respectively) seems to confuse Wine's build scripts, so something should be done about that as well. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237213-7788-HypaPlPiTm>