[Bug 230137] cc: -flto link option is broken: unrecognized option '-plugin'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 29 05:20:11 UTC 2018


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

            Bug ID: 230137
           Summary: cc: -flto link option is broken: unrecognized option
                    '-plugin'
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

How to reproduce:
1. Create a file x.c with this line: void f() { }

2. Run this command:
> cc -c -emit-llvm x.c -o x.o && cc -shared -flto x.o -o x.so

3. Observe the error:
> /usr/bin/ld: unrecognized option '-plugin'
> /usr/bin/ld: use the --help option for usage information
> cc: error: linker command failed with exit code 1 (use -v to see invocation)

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


More information about the freebsd-bugs mailing list