[LLVMbugs] [Bug 10296] New: clang doesn't honor LIBRARY_PATH
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 7 06:42:01 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10296
Summary: clang doesn't honor LIBRARY_PATH
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
The clang compiler doesn't honor LIBRARY_PATH during linkage. For example, when
building guile 1.8.8 using clang against libgmp in /sw/lib...
setenv LIBRARY_PATH /sw/lib
allows both gcc and ifort to find libgmp in /sw/lib without explicitly passing
-L/sw/lib on the compiler options...
[MacPro:guile18-1.8.8-3/guile-1.8.8/build] root# gcc -o conftest -g -O2
-Dmacosx conftest.c -lgmp -lm -lltdl
however this same configure test fails to link under clang...
[MacPro:guile18-1.8.8-3/guile-1.8.8/build] root# clang -o conftest -g -O2
-Dmacosx conftest.c -lgmp -lm -lltdl
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list