mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
core: change comment about linker and circular references problems with static libs
This commit is contained in:
@@ -81,7 +81,7 @@ add_executable(${EXECUTABLE} ${WEECHAT_CURSES_MAIN_SRC})
|
||||
|
||||
add_dependencies(${EXECUTABLE} weechat_gui_curses)
|
||||
|
||||
# Because of a linker bug, we have to link 2 times with libweechat_core.a
|
||||
# Due to circular references, we must link two times with libweechat_core.a
|
||||
target_link_libraries(${EXECUTABLE} ${STATIC_LIBS} weechat_gui_curses ${EXTRA_LIBS} ${STATIC_LIBS})
|
||||
|
||||
install(TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
|
||||
|
||||
@@ -33,8 +33,8 @@ lib_weechat_gui_curses_a_SOURCES = gui-curses-bar-window.c \
|
||||
|
||||
bin_PROGRAMS = weechat
|
||||
|
||||
# Because of a linker bug, we have to link 2 times with lib_weechat_core.a
|
||||
# (and it must be 2 different path/names to be kept by linker)
|
||||
# Due to circular references, we must link two times with libweechat_core.a
|
||||
# (and with two different path/names to be kept by linker)
|
||||
weechat_LDADD = ./../../core/lib_weechat_core.a \
|
||||
../../plugins/lib_weechat_plugins.a \
|
||||
../lib_weechat_gui_common.a \
|
||||
|
||||
Reference in New Issue
Block a user