mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 09:44:04 +00:00
Force global library path for pkgsrc.
DragonFlyBSD uses pkgsrc package infrastructure, hence the the need for extra flags. Cmake pkg_search_module macro sets according <XPREFIX>_LDFLAGS var, thus the correct way should be to append it to conky_includes and conky_libs for each extra package needed. As all pkgsrc packages always install in /usr/pkg, the simplest thing is to set specific cflags and ldflags at the very beginning. Conky is btw wip (work in progress) in pkgsrc system, mostly with NetBSD patches. This is intended as radical workaround (DragonFlyBSD specific for now) instead of submitting specific patches to pksrc maintainers.
This commit is contained in:
parent
01995b1326
commit
93af415ad7
@ -67,6 +67,11 @@ set(conky_includes ${CMAKE_BINARY_DIR})
|
||||
add_definitions(-D_LARGEFILE64_SOURCE) # Standard definitions
|
||||
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_LARGEFILE64_SOURCE")
|
||||
|
||||
if(OS_DRAGONFLY)
|
||||
set(conky_libs ${conky_libs} -L/usr/pkg/lib)
|
||||
set(conky_includes ${conky_includes} -I/usr/pkg/include)
|
||||
endif(OS_DRAGONFLY)
|
||||
|
||||
# Do version stuff
|
||||
set(VERSION_MAJOR "2")
|
||||
set(VERSION_MINOR "0")
|
||||
|
Loading…
Reference in New Issue
Block a user