[LLVMbugs] [Bug 18164] New: Clang fails to deal with -R command line parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 6 19:49:51 PST 2013


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

            Bug ID: 18164
           Summary: Clang fails to deal with -R command line parameter
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: brad at comstyle.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Doing some testing of 3.4 I noticed a change in behavior that broke building
some applications but it also pointed out the fact that Clang is not properly
dealing with the -R command line parameter as GCC does.

Using -R [dir] is supposed to result in -R [dir] being passed down to the
linker to record the run-time path for libraries.

The change from a warning to an error now causes autoconf tests to fail.

clang-3.3: warning: argument unused during compilation: '-R/usr/local/lib'

clang-3.4: error: unknown argument: '-R/usr/local/lib'

>From ld(1)..

       -R filename
       --just-symbols=filename
           Read symbol names and their addresses from filename, but do not
           relocate it or include it in the output.  This allows your output
           file to refer symbolically to absolute locations of memory defined
           in other programs.  You may use this option more than once.

           For compatibility with other ELF linkers, if the -R option is
           followed by a directory name, rather than a file name, it is
           treated as the -rpath option.

-- 
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/20131207/32683ead/attachment.html>


More information about the llvm-bugs mailing list