[PATCH] winebuild: Use Clang to assemble if found. (try 5)

Alexandre Julliard julliard at winehq.org
Mon Jan 28 12:45:41 CST 2013


Charles Davis <cdavis5x at gmail.com> writes:

> Try 5: Don't use strstr(3).
>
> The configure script invokes the C compiler to figure out if .cfi
> pseudo-ops are supported, on the assumption that it will invoke the
> system assembler. Winebuild, on the other hand, invokes the system
> assembler directly. This caused a problem on Mac OS hosts when compiling
> with Clang: configure would detect that .cfi ops were supported, because
> Clang's integrated assembler supports them; however, when winebuild then
> emitted assembly with .cfi ops in them, the system assembler would then
> choke. This patch makes winebuild invoke Clang's assembler if it is
> found in the path.

It's causing warnings on my Mac:

clang: warning: /usr/bin/clang: 'linker' input unused when '-c' is present
clang: warning: /usr/bin/clang: 'linker' input unused when '-c' is present

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list