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: b...@freebsd.org
          Reporter: y...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to