1 diff -ruN percona-server-5.7.14-7.orig/extra/CMakeLists.txt percona-server-5.7.14-7/extra/CMakeLists.txt
2 --- percona-server-5.7.14-7.orig/extra/CMakeLists.txt 2016-08-18 19:09:52.000000000 +0300
3 +++ percona-server-5.7.14-7/extra/CMakeLists.txt 2016-09-12 19:43:15.910906962 +0300
6 MYSQL_ADD_EXECUTABLE(replace replace.c)
7 TARGET_LINK_LIBRARIES(replace mysys)
8 +TARGET_LINK_LIBRARIES(replace "-lsocket")
10 MYSQL_ADD_EXECUTABLE(lz4_decompress lz4_decompress.cc)
11 TARGET_LINK_LIBRARIES(lz4_decompress ${LZ4_LIBRARY})
12 diff -ruN percona-server-5.7.14-7.orig/mysys/CMakeLists.txt percona-server-5.7.14-7/mysys/CMakeLists.txt
13 --- percona-server-5.7.14-7.orig/mysys/CMakeLists.txt 2016-08-18 19:09:52.000000000 +0300
14 +++ percona-server-5.7.14-7/mysys/CMakeLists.txt 2016-09-12 19:45:31.155554435 +0300
17 ADD_EXECUTABLE(thr_lock thr_lock.c)
18 TARGET_LINK_LIBRARIES(thr_lock mysys)
19 +TARGET_LINK_LIBRARIES(thr_lock "-lsocket")
20 SET_TARGET_PROPERTIES(thr_lock PROPERTIES COMPILE_FLAGS "-DMAIN")
21 ADD_EXECUTABLE(queues queues.c)
22 TARGET_LINK_LIBRARIES(queues mysys)
23 +TARGET_LINK_LIBRARIES(queues "-lsocket")
24 SET_TARGET_PROPERTIES(queues PROPERTIES COMPILE_FLAGS "-DMAIN")
25 ADD_TEST(queues_test queues)
27 diff -ruN percona-server-5.7.14-7.orig/storage/heap/CMakeLists.txt percona-server-5.7.14-7/storage/heap/CMakeLists.txt
28 --- percona-server-5.7.21-21/storage/heap/CMakeLists.txt.~1~ 2018-05-04 11:03:45.837412503 +0000
29 +++ percona-server-5.7.21-21/storage/heap/CMakeLists.txt 2018-05-04 11:10:07.338493177 +0000
32 ADD_EXECUTABLE(hp_test1 hp_test1.c)
33 TARGET_LINK_LIBRARIES(hp_test1 ${HEAP_NOPFS} mysys)
34 + TARGET_LINK_LIBRARIES(hp_test1 "-lsocket")
35 ADD_TEST(hp_test1 hp_test1)
37 ADD_EXECUTABLE(hp_test2 hp_test2.c)
38 TARGET_LINK_LIBRARIES(hp_test2 ${HEAP_NOPFS} mysys)
39 + TARGET_LINK_LIBRARIES(hp_test2 "-lsocket")
40 ADD_TEST(hp_test2 hp_test2)
42 diff -ruN percona-server-5.7.14-7.orig/storage/perfschema/unittest/CMakeLists.txt percona-server-5.7.14-7/storage/perfschema/unittest/CMakeLists.txt
43 --- percona-server-5.7.14-7.orig/storage/perfschema/unittest/CMakeLists.txt 2016-08-18 19:09:52.000000000 +0300
44 +++ percona-server-5.7.14-7/storage/perfschema/unittest/CMakeLists.txt 2016-09-12 19:47:13.218567957 +0300
46 MACRO (PFS_ADD_TEST name)
47 ADD_EXECUTABLE(${name}-t ${name}-t.cc)
48 TARGET_LINK_LIBRARIES(${name}-t mytap perfschema mysys pfs_server_stubs)
49 + TARGET_LINK_LIBRARIES(${name}-t "-lsocket")
50 ADD_TEST(${name} ${name}-t)