Skip to content

Commit df00da9

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 5ab0373 commit df00da9

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
@@ -312,7 +312,7 @@ IF(WIN32)
312312
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} ${CMAKE_SOURCE_DIR}/mariadb-odbc-driver-uni.def maodbcu.rc)
313313
ELSE()
314314
MESSAGE(STATUS "Version script: ${CMAKE_SOURCE_DIR}/maodbc.def")
315-
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} maodbcu.rc)
315+
ADD_LIBRARY(${LIBRARY_NAME} MODULE ${MARIADB_ODBC_SOURCES} maodbcu.rc)
316316

317317
IF(APPLE)
318318
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)