Skip to content

Commit f1366dc

Browse files
committed
fix
1 parent 3d85101 commit f1366dc

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

CMakeLists.txt

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,23 +330,35 @@ if(PAIMON_BUILD_TESTS)
330330
paimon_global_index_static
331331
paimon_local_file_system_static
332332
paimon_mock_file_format_static
333-
paimon_parquet_file_format_static
334-
paimon_blob_file_format_static)
333+
-Wl,--no-as-needed
334+
paimon_parquet_file_format_shared
335+
paimon_blob_file_format_shared
336+
-Wl,--as-needed)
335337
336338
if(PAIMON_ENABLE_LANCE)
337-
list(APPEND TEST_STATIC_LINK_LIBS paimon_lance_file_format_static)
339+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--no-as-needed)
340+
list(APPEND TEST_STATIC_LINK_LIBS paimon_lance_file_format_shared)
341+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--as-needed)
338342
endif()
339343
if(PAIMON_ENABLE_ORC)
340-
list(APPEND TEST_STATIC_LINK_LIBS paimon_orc_file_format_static)
344+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--no-as-needed)
345+
list(APPEND TEST_STATIC_LINK_LIBS paimon_orc_file_format_shared)
346+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--as-needed)
341347
endif()
342348
if(PAIMON_ENABLE_AVRO)
343-
list(APPEND TEST_STATIC_LINK_LIBS paimon_avro_file_format_static)
349+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--no-as-needed)
350+
list(APPEND TEST_STATIC_LINK_LIBS paimon_avro_file_format_shared)
351+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--as-needed)
344352
endif()
345353
if(PAIMON_ENABLE_JINDO)
354+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--no-as-needed)
346355
list(APPEND TEST_STATIC_LINK_LIBS paimon_jindo_file_system_shared)
356+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--as-needed)
347357
endif()
348358
if(PAIMON_ENABLE_LUMINA)
359+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--no-as-needed)
349360
list(APPEND TEST_STATIC_LINK_LIBS paimon_lumina_index_shared)
361+
list(APPEND TEST_STATIC_LINK_LIBS -Wl,--as-needed)
350362
endif()
351363
352364
endif()

0 commit comments

Comments
 (0)