[LLVMbugs] [Bug 19090] New: Clang does not quote arguments to linker

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 9 10:19:50 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19090

            Bug ID: 19090
           Summary: Clang does not quote arguments to linker
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jpakkane at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Clang does not quote arguments of -rpath when passing them to the linker. This
causes link errors when work directories contain a shell metacharacter (most
commonly a space).

With this command line argument to Clang:

'-Wl,-rpath,space path'

this gets passed to the linker

-rpath space path

When it should pass this:

-rpath "space path"

Gcc does the latter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140309/224f70c4/attachment.html>


More information about the llvm-bugs mailing list