Skip to content

Commit a8b74b4

Browse files
committed
Build the MariaODBC driver as a soname-less module
When built as a module instead of a shared library, the library is no longer exporting an unversioned soname. Building the library with an unversioned soname is superfluous as the linker will use the filename for linking. The soname is only necessary when the library linked during build has different filename than the library to be used at runtime.
1 parent 2e0c5f3 commit a8b74b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ IF(WIN32)
316316
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} ${CMAKE_SOURCE_DIR}/mariadb-odbc-driver-uni.def maodbcu.rc)
317317
ELSE()
318318
MESSAGE(STATUS "Version script: ${CMAKE_SOURCE_DIR}/maodbc.def")
319-
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} maodbcu.rc)
319+
ADD_LIBRARY(${LIBRARY_NAME} MODULE ${MARIADB_ODBC_SOURCES} maodbcu.rc)
320320

321321
IF(APPLE)
322322
SET(MAODBC_INSTALL_RPATH "${ODBC_LIB_DIR}" "@loader_path" "/usr/local/opt/libiodbc" "/usr/local/iODBC/lib" "/usr/local/opt/[email protected]/lib" "/usr/local/opt/libressl/lib")

0 commit comments

Comments
 (0)