Add new comment

After reverse engineering of

After reverse engineering of 'libtool' and inspecting the output of the build, I found the samples link against the shared library using a deprecated options '-Wl,-bind_at_load'.

ld: warning: -bind_at_load is deprecated on macOS

In my case I need to link my shared library against the static library 'libraw.a' and also avoid additional DLLs must be packed in addition to the dynamic library of libraw.

Could it be configure did something wrong and symbols are no longer exported during build process of libraw?

I still do not understand why the linker complains about undefined symbols of DNG or Kodak parts of the library, that should be incorporated as optional.

  _jpeg_CreateDecompress, referenced from:
      LibRaw::lossy_dng_load_raw() in libraw.a[9](dng.o)
      LibRaw::kodak_jpeg_load_raw() in libraw.a[13](kodak_decoders.o)
  _jpeg_abort_decompress, referenced from:
      LibRaw::lossy_dng_load_raw() in libraw.a[9](dng.o)
  _jpeg_destroy_decompress, referenced from:
      LibRaw::lossy_dng_load_raw() in libraw.a[9](dng.o)
      LibRaw::lossy_dng_load_raw() in libraw.a[9](dng.o)
      LibRaw::lossy_dng_load_raw() in libraw.a[9](dng.o)
      LibRaw::kodak_jpeg_load_raw() in libraw.a[13](kodak_decoders.o)
      LibRaw::kodak_jpeg_load_raw() in libraw.a[13](kodak_decoders.o)