Skip to content

NetCDF 4.10.1: file extension issue when cross-compiling plugins for Mac OS X on Linux using autotools #3418

Description

@Alexander-Barth

When cross-compiling the netCDF plugins for Mac OS X on Linux, the compiled plugins have the .so extension (using autotool, build script):

$ cd ~/src/Yggdrasil-mine/N/NetCDF/build/aarch64-apple-darwin/7Uod5EXx/aarch64-apple-darwin20-libgfortran5-cxx11/destdir/hdf5/lib/plugin 
$ ls
lib__nch5blosc.so  lib__nch5deflate.so     lib__nch5shuffle.so  lib__nch5zstd.so        lib__nczstdfilters.so
lib__nch5bzip2.so  lib__nch5fletcher32.so  lib__nch5szip.so     lib__nczhdf5filters.so

The binary seems to be correct:

$ file lib__nczhdf5filters.so
lib__nczhdf5filters.so: Mach-O 64-bit arm64 bundle, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL>

I was wondering if the use of the .so extension (rather than .dynlib) is intended ?

Conda distributes these plugins with the ".dynlib" extension. The issue might be build system dependent. We are using autotools and Conda is using cmake. I am not sure if Conda is cross-compiling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions