Message387112
I mean, find_library relies on gcc linker, when you pass library name to the linker, it automatically ads "lib" prefix to the library
so, when you pass "libc", linker ads "lib" so u have an error with "liblibc" name.
just man ld and see "-l" option:
"
-l namespec
--library=namespec
Add the archive or object file specified by namespec to the
list of files to link. This option may be used any number of
times. If namespec is of the form :filename, ld will search
the library path for a file called filename, otherwise it
will search the library path for a file called libnamespec.a.
"
as you can see, you pass not a library name, but a "namespec"
which then transforms to "libnamespec" |
|
Date |
User |
Action |
Args |
2021-02-16 14:04:28 | RedEyed | set | recipients:
+ RedEyed, doko, vstinner, eryksun, Alex Shpilkin |
2021-02-16 14:04:28 | RedEyed | set | messageid: <1613484268.1.0.987041549338.issue42580@roundup.psfhosted.org> |
2021-02-16 14:04:28 | RedEyed | link | issue42580 messages |
2021-02-16 14:04:28 | RedEyed | create | |
|