Am 06.03.2020 um 10:09 schrieb Paul Wise: > On Fri, 2020-03-06 at 09:59 +0100, Patrick Matthäi wrote: > >> Would it be enough to add a dependency from guichan-allegro to guichan? >> The problem is if I add the library dependency, ld cant find the path, >> since it is all in the build directory. > I'm no expert and assuming you mean a package dependency rather than > library dependency but I don't think so since an application linking > guichan-allegro but not guichan would not get the guichan symbols > loaded so guichan-allegro would not be able to use guichan symbols, > even though both libraries would be installed on the system. > Ok. That is just my problem when I add -lguichan:
/bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -fdebug-prefix-map=/build/guichan-0.8.2=. -fstack-protector-strong -Wformat -Werror=forma t-security -Wall -Wno-unused -DGUICHAN_BUILD -no-undefined -release 0.8.1 -version-info 2:0:1 -lalleg -lguichan -Wl,-z,relro -Wl,-z,now -o libguichan_ allegro.la -rpath /usr/lib/x86_64-linux-gnu allegro.lo allegrofont.lo allegrographics.lo allegroimage.lo allegroimageloader.lo allegroinput.lo libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o .libs/allegro.o .libs/allegrofont.o .libs/allegrographics.o .libs/allegroimage.o .libs/allegroimageloader.o .libs/allegroinput.o -lalleg -lguichan -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libguichan_allegro-0.8.1.so.1 -o .libs/libguichan_allegro-0.8.1.so.1.1.0 /usr/bin/ld: cannot find -lguichan collect2: error: ld returned 1 exit status -- /* Mit freundlichem Gruß / With kind regards, Patrick Matthäi GNU/Linux Debian Developer Blog: https://www.linux-dev.org/ E-Mail: pmatth...@debian.org patr...@linux-dev.org */
signature.asc
Description: OpenPGP digital signature