-
Notifications
You must be signed in to change notification settings - Fork 372
Description
Had an issue linking while building, resolved via changing tests/fe-common/core/meson.build to link_whole : life_common_core_a.
Unsure exactly what's going on or if there is a better way for me to resolve this.
[3/3] Linking target tests/fe-common/core/test-formats
FAILED: tests/fe-common/core/test-formats
cc -o tests/fe-common/core/test-formats tests/fe-common/core/test-formats.p/test-formats.c.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-rpath,/opt/homebrew/Cellar/glib/2.72.2/lib -Wl,-rpath,/opt/homebrew/opt/gettext/lib -Wl,-rpath,/opt/homebrew/Cellar/openssl@3/3.0.5/lib src/lib-config/libirssi_config.a src/core/libcore.a src/fe-common/core/libfe_common_core.a /opt/homebrew/Cellar/glib/2.72.2/lib/libglib-2.0.dylib /opt/homebrew/opt/gettext/lib/libintl.dylib /opt/homebrew/Cellar/glib/2.72.2/lib/libgmodule-2.0.dylib /opt/homebrew/Cellar/openssl@3/3.0.5/lib/libssl.dylib /opt/homebrew/Cellar/openssl@3/3.0.5/lib/libcrypto.dylib
Undefined symbols for architecture arm64:
"_current_theme", referenced from:
_format_get_text_theme in libfe_common_core.a(formats.c.o)
_format_get_text in libfe_common_core.a(formats.c.o)
_strip_codes in libfe_common_core.a(formats.c.o)
_format_send_as_gui_flags in libfe_common_core.a(formats.c.o)
_window_print_daychange in libfe_common_core.a(fe-windows.c.o)
_printformat_module_dest_charargs in libfe_common_core.a(printtext.c.o)
_printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
...
"_default_formats", referenced from:
_format_find_tag in libfe_common_core.a(formats.c.o)
_format_get_text_theme_args in libfe_common_core.a(formats.c.o)
_printformat_module_dest_args in libfe_common_core.a(printtext.c.o)
_printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)