https://bugzilla.novell.com/show_bug.cgi?id=674696
https://bugzilla.novell.com/show_bug.cgi?id=674696#c0
Summary: gcc resolves -lX to libX.so
Classification: openSUSE
Product: openSUSE 11.3
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.3
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Development
AssignedTo: pth@novell.com
ReportedBy: giecrilj@stegny.2a.pl
QAContact: qa@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.2.13)
Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13
The documentation for GCC Linker Options [1] states that -lX == find libX.a
along the search path. GCC at openSuSE does not comply, providing an
undocumented extension.
Reproducible: Always
Steps to Reproduce:
{ rm -f liblib-search-bug.a &&
echo 'int openSuSE_gcc_bug_lib_search;' > lib-search-bug.c &&
gcc -shared lib-search-bug.c -o liblib-search-bug.so &&
gcc -L. lib-search-bug.c -llib-search-bug
}
Actual Results:
ld: undefined reference to `main'
Expected Results:
ld: cannot find -llib-search-bug
[1]