octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59373] [MXE] for dependencies that use cmake,


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #59373] [MXE] for dependencies that use cmake, don't build static libraries
Date: Thu, 29 Oct 2020 07:52:34 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.56

Follow-up Comment #12, bug #59373 (project octave):

With the attached patch, liboctinterp depends on hdf5.dll for me.

I always thought that the linker would prefer the dynamic library if both a
static and a dynamic library were available. But either something goes wrong
if both the static and the dynamic library are built, or that assumption was
wrong in the first place.

In any case, I agree that we shouldn't have built a static version of the hdf5
libraries if BUILD_STATIC is "no".

With that patch, there is still no "libhdf5.dll.a". But as stated before,
liboctinterp depends on hdf5.dll for me. I guess something like "libhdf5.lib"
is equivalent.
To be honest, all of these (differing?) conventions with library file
extensions are confusing me...

With the patch, I see the following files in "bin" (file sizes are without
stripping symbols):

-rwxr-xr-x 1 5206904 Oct 29 08:35 hdf5.dll
-rwxr-xr-x 1  474983 Oct 29 08:35 hdf5_hl.dll
-rwxr-xr-x 1  652232 Oct 29 08:35 hdf5_tools.dll


And in "lib":

-rw-r--r-- 1  114440 Oct 29 08:35 libhdf5_hl.lib
-rw-r--r-- 1 2248250 Oct 29 08:35 libhdf5.lib
-rw-r--r-- 1    3441 Oct 29 08:33 libhdf5.settings
-rw-r--r-- 1  109526 Oct 29 08:35 libhdf5_tools.lib



I didn't yet have time to completely understand the implications of policy
CMP0077. But from what I gather from a first look at it, I'm not sure if we
have to revisit how we are setting BUILD_SHARED_LIBS and BUILD_STATIC_LIBS?

It's true that there are a lot of .a files in "lib". But there also were a lot
for 5.2.0. Is there an easy way to find out which ones are new?

(file #50161)
    _______________________________________________________

Additional Item Attachment:

File name: bug59373_hdf5_sharedlib.patch  Size:1 KB
   
<https://file.savannah.gnu.org/file/bug59373_hdf5_sharedlib.patch?file_id=50161>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59373>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]