This allows picking some necessary linker flags such as
-Wl,--whole-archive
)
if(STATIC_PKGDEPS_LIBS)
- link_directories(${PKGDEPS_STATIC_LIBRARY_DIRS})
- list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_STATIC_LIBRARIES})
+ list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_STATIC_LDFLAGS})
if(WIN32)
# Workaround for a MinGW linking issue.
list(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2")
endif()
else()
- link_directories(${PKGDEPS_LIBRARY_DIRS})
- list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES})
+ list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_LDFLAGS})
endif()
if(WIN32)