1 --- td-1.6.0/CMakeLists.txt.orig
2 +++ td-1.6.0/CMakeLists.txt
5 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
6 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections")
7 - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL")
8 + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,ignore")
13 add_definitions(-D_FILE_OFFSET_BITS=64)
16 +if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
17 + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lsocket -lnsl")
20 include(AddCXXCompilerFlag)
22 add_cxx_compiler_flag("-Wall")