Ich möchte eine gemeinsame Bibliothek bauen, die ZipArchive mit GNU Autotools verwendet, aber ich habe dieses Problem:Warum möchte Libtool keine Verbindung zu einer statischen Bibliothek herstellen?
Warning: linker path does not have real file for library -lziparch. I have the capability to make that library automatically link in when you link to this library. But I can only do this if you have a shared version of the library, which you do not appear to have because I did check the linker path looking for a file starting with libziparch and none of the candidates passed a file format test using a file magic. Last file checked: /usr/local/ZipArchive/ZipArchive/libziparch.a The inter-library dependencies that have been dropped here will be automatically added whenever a program is linked with this library or is declared to -dlopen it.
Wenn ich eine statische Bibliothek bauen oder wenn ich eine gemeinsame Bibliothek von ZipArchive verwenden es funktioniert, aber das Problem ist, dass das Makefile, das mit ZipArchive-Quellcode geliefert wird, nur eine statische Bibliothek erstellt.
Wie kann ich Libtool zwingen, eine Verbindung mit einer statischen Bibliothek herzustellen?