[Bug 248788] [MAINTAINER] emulators/simh: fix build problem on LLVM 11

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 20 19:41:39 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248788

            Bug ID: 248788
           Summary: [MAINTAINER] emulators/simh: fix build problem on LLVM
                    11
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: bob at eager.cx

Created attachment 217397
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217397&action=edit
Patch for Makefile

simh does not build on LLVM 11. This is due to the default setting of
-fno-common (previously -fcommon).

The upstream code depends on weak globals, so the fix is simply to provide
-fcommon as part of CFLAGS.

Tested on 13-CURRENT and latest ports tree, using LLVM11 from ports.

This is a backward compatible fix.

Patch attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list