Comments - Is it possible to build the library without dependency on libdl?

1 month, 2 weeks ago Cyrus Behroozi

Hi Daniel, I tried what you suggested. I modified my build script to the following: ``` test -e mariadb-connector-c || git clone https://github.com/mariadb-corporation/mariadb-connector-c.git cd mariadb-connector-c test -e build_amd64 || mkdir build_amd64 cd build_amd64

make -j4 make DESTDIR=./packaged install ```

After building, when I navigate to the directory containing the libraries and I run `ldd libmariadb.so` I get the following output: ``` linux-vdso.so.1 (0x00007ffdd22f7000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6ab2c3e000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6ab2a1f000) libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f6ab2792000) libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f6ab22c7000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6ab1ed6000) /lib64/ld-linux-x86-64.so.2 (0x00007f6ab30b2000) ```

It looks like `libdl` is still a dependency

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.