2024-04-25 21:20 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000397mercuryBugpublic2015-10-20 18:00
Assigned Towangp 
Product Version 
Target VersionFixed in Version 
Summary0000397: Clang fails to deal with -R command line parameter
DescriptionNot necessarily our bug, but clang 3.4 does not like -R/foo:

clang -R/foo --version
clang: error: unknown argument: '-R/foo'
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: i386-unknown-freebsd10.1
Thread model: posix

TagsNo tags attached.
Attached Files




juliensf (administrator)

Presumably it is happy with -Wl,-rpath though? We may need to make the definitions of SHLIB_RPATH_OPT etc in the configure script dependent on the C compiler type on the affected platforms.


wangp (developer)

Yes, all of these work. The linker is GNU ld.


so we can probably just remove lines in configure.ac that force "-R" for FreeBSD.


juliensf (administrator)

Yep, that would work for GCC as well. I assume you have a FreeBSD system set up to test this on?

-Issue History
Date Modified Username Field Change
2015-10-13 17:43 wangp New Issue
2015-10-14 10:08 juliensf Note Added: 0000851
2015-10-14 12:38 wangp Note Added: 0000853
2015-10-14 15:14 juliensf Note Added: 0000854
2015-10-20 18:00 wangp Status new => resolved
2015-10-20 18:00 wangp Resolution open => fixed
2015-10-20 18:00 wangp Assigned To => wangp
+Issue History