SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--unresolved-symbols=ignore-all ${ext_syms}")
-IF (EXISTS "${CMAKE_SOURCE_DIR}/libext.a")
- ADD_LIBRARY(ext STATIC IMPORTED)
- SET_PROPERTY(TARGET ext PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/libext.a)
- LIST(APPEND ext_libs ext)
-ENDIF()
-
-IF (EXISTS "${CMAKE_SOURCE_DIR}/libext4.a")
- ADD_LIBRARY(ext4 STATIC IMPORTED)
- SET_PROPERTY(TARGET ext4 PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/libext4.a")
- LIST(APPEND ext_libs ext4)
-ENDIF()
+LIST(APPEND ext_libs iptext)
+LIST(APPEND ext_libs iptext4)
IF (NOT DISABLE_IPV6)
- IF (EXISTS "${CMAKE_SOURCE_DIR}/libext6.a")
- ADD_LIBRARY(ext6 STATIC IMPORTED)
- SET_PROPERTY(TARGET ext6 PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/libext6.a")
- LIST(APPEND ext_libs ext6)
- ENDIF()
+ LIST(APPEND ext_libs iptext6)
LIST(APPEND iptc_libs ip6tc)
ELSE()
ADD_DEFINITIONS(-DDISABLE_IPV6)