> Then I built with the following command
> make static_lib_ub -j8
>
So the linking issues arrive, when you reuse the library and try and
link it with your own application. I would guess then that you are
missing some options to the linker to include the crc arm libraries. I
am not sure what you need to here. Perhaps if you trace the
compilation in RocksDB you can work out what libraries it links with
to add the crc arm support, and then include those in your link
process also?
> After that I took the lib file and link with my application, where the link error pops up.
> So I could see from git log, that the last change is from you, and the previous one is from Levi Tamasi.
>
>> > Not sure if this is the right solution though, not able to verify if it runs either.
>> >
>> > Undefined symbols for architecture arm64:
>> > “crc32c_arm64(unsigned int, unsigned char const*, unsigned long)“, referenced from:
>> > rocksdb::crc32c::ExtendARMImpl(unsigned int, char const*, unsigned long) in librocksdb.a(crc32c.o)
>> > “crc32c_runtime_check()“, referenced from:
>> > rocksdb::crc32c::IsFastCrc32Supported() in librocksdb.a(crc32c.o)
>> > l002 in librocksdb.a(crc32c.o)
>> > “crc32c_pmull_runtime_check()“, referenced from:
>> > rocksdb::crc32c::IsFastCrc32Supported() in librocksdb.a(crc32c.o)
>> > l002 in librocksdb.a(crc32c.o)
>> > ld: symbol(s) not found for architecture arm64