[Bug 26758] New: Makefile system does not respect AS variable

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 12 23:26:22 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26758

           Summary: Makefile system does not respect AS variable
           Product: Wine
           Version: 1.3.17
          Platform: x86
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: cdavis at mines.edu


As part of building Wine DLLs an executables, Winebuild generates assembly
files that are then assembled. If an assembler is specified using --as-cmd,
that program is used; otherwise the system assembler is used.

Wine's build system, unfortunately, does not allow the user to set the
assembler to pass to winebuild. The usual way to set the assembler to use is to
set the AS variable, but the build system does not respect it.

This is a problem, for example, on Mac OS X when building with Clang with its
integrated assembler turned on. Clang's integrated assembler supports .cfi
directives, but the system assembler doesn't. During configure, a test file
containing .cfi directives is passed to the compiler, on the assumption that it
would be then passed to the system assembler. With Clang's integrated
assembler, this assumption is broken. Thus, when winebuild tries to assemble
files containing .cfi directives (because it believes that the system assembler
supported them), it fails as a result. A workaround is to tell winebuild to use
Clang to assemble, but the Makefile system doesn't support that.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list