FreeBSD Bugzilla – Attachment 198587 Details for
Bug 232650
devel/yosys: fix build with GCC-based architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
yosys.patch (text/plain), 2.08 KB, created by
Piotr Kubaj
on 2018-10-24 17:25:12 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-10-24 17:25:12 UTC
Size:
2.08 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 482837) >+++ Makefile (working copy) >@@ -12,14 +12,13 @@ > LICENSE= ISCL > LICENSE_FILE= ${WRKSRC}/COPYING > >-BROKEN_powerpc64= fails to build: /bin/sh: clang: not found >- > BUILD_DEPENDS= abc:cad/abc \ > bash:shells/bash \ > gawk:lang/gawk > LIB_DEPENDS= libffi.so:devel/libffi > >-USES= bison gmake pkgconfig python:3.6+ readline shebangfix tcl >+USES= bison compiler:c++11-lang gmake pkgconfig python:3.6+ readline \ >+ shebangfix tcl > SHEBANG_FILES= backends/smt2/smtbmc.py \ > misc/yosys-config.in > >@@ -30,7 +29,19 @@ > BINARY_ALIAS= python3=${PYTHON_CMD} tclsh=${TCLSH} > MAKE_ARGS= ABCEXTERNAL=abc > >+.include <bsd.port.pre.mk> >+ >+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 >+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Makefile >+.endif >+ >+post-patch: >+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 >+ ${REINPLACE_CMD} -e 's|%%GCC_DEFAULT%%|${GCC_DEFAULT}|' \ >+ ${WRKSRC}/Makefile >+.endif >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/yosys > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >Index: files/extra-patch-Makefile >=================================================================== >--- files/extra-patch-Makefile (nonexistent) >+++ files/extra-patch-Makefile (working copy) >@@ -0,0 +1,23 @@ >+--- Makefile.orig 2018-05-13 11:27:14 UTC >++++ Makefile >+@@ -1,6 +1,6 @@ >+ >+-CONFIG := clang >+-# CONFIG := gcc >++# CONFIG := clang >++CONFIG := gcc >+ # CONFIG := gcc-4.8 >+ # CONFIG := emcc >+ # CONFIG := mxe >+@@ -145,9 +145,9 @@ endif >+ endif >+ >+ else ifeq ($(CONFIG),gcc) >+-CXX = gcc >++CXX = g++%%GCC_DEFAULT%% >+ LD = gcc >+-CXXFLAGS += -std=c++11 -Os >++CXXFLAGS += -std=c++11 >+ >+ else ifeq ($(CONFIG),gcc-4.8) >+ CXX = gcc-4.8 > >Property changes on: files/extra-patch-Makefile >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 232650
: 198587