Overview
| Artifact ID: | dddcf7d782516859a7bfd60af378cbaaacbf7f2e46048f4924c5aa18046bee0b |
|---|---|
| Ticket: | 2d7b1e257a6497892305ebd1ff1fd528d07ab4ed
pkg-config --libs returns incorrect libraries. |
| User & Date: | bll on 2020-09-25 12:30:16 |
Changes
- icomment:
Hmmm...I was assuming some sort of overlap between the two libraries. Still it gives very different results: I don't know that the first one will work on every Linux system. # with -ltcl8.6 bll-g7:bll$ cc -O2 -fstack-protector-strong -fstack-protector-all -shared -o diskspace.so tcldiskspace.o dimain.o didiskutil.o digetentries.o digetinfo.o diquota.o display.o getoptn.o options.o realloc.o strdup.o strstr.o trimchar.o -L/home/bll/local/lib -ltcl8.6 -ltclstub8.6 bll-g7:bll$ ldd diskspace.so linux-vdso.so.1 (0x00007ffd6a7cf000) libtcl8.6.so => /lib/x86_64-linux-gnu/libtcl8.6.so (0x00007f8a6cec6000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8a6cd05000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8a6cd00000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8a6cae2000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8a6cac1000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8a6c93e000) /lib64/ld-linux-x86-64.so.2 (0x00007f8a6d0b5000) # without -ltcl8.6 bll-g7:bll$ cc -O2 -fstack-protector-strong -fstack-protector-all -shared -o diskspace.so tcldiskspace.o dimain.o didiskutil.o digetentries.o digetinfo.o diquota.o display.o getoptn.o options.o realloc.o strdup.o strstr.o trimchar.o -L/home/bll/local/lib -ltclstub8.6 bll-g7:bll$ ldd diskspace.so linux-vdso.so.1 (0x00007ffc2bffe000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5c068c6000) /lib64/ld-linux-x86-64.so.2 (0x00007f5c06ab7000) bll-g7:bll$ - login: "bll"
- mimetype: "text/plain"