forked from lix-project/lix
jade
0d85875c3a
It happens with some frequency that plugins that might be unimportant to
the evaluation at hand mismatch with the nix version, leading to
spurious load failures. Let's make these non fatal.
Change-Id: Iba10e951d171725ccf1a121bcd9be1e1d6ad69eb
28 lines
773 B
Makefile
28 lines
773 B
Makefile
libraries += libplugintest libplugintestfail
|
|
|
|
libplugintest_DIR := $(d)
|
|
|
|
libplugintest_SOURCES := $(d)/plugintest.cc
|
|
|
|
libplugintest_ALLOW_UNDEFINED := 1
|
|
|
|
libplugintest_EXCLUDE_FROM_LIBRARY_LIST := 1
|
|
|
|
libplugintest_CXXFLAGS := -I src/libutil -I src/libstore -I src/libexpr -I src/libfetchers
|
|
|
|
libplugintestfail_DIR := $(d)
|
|
|
|
libplugintestfail_SOURCES := $(d)/plugintestfail.cc
|
|
|
|
libplugintestfail_ALLOW_UNDEFINED := 1
|
|
|
|
libplugintestfail_EXCLUDE_FROM_LIBRARY_LIST := 1
|
|
|
|
libplugintestfail_CXXFLAGS := -I src/libutil -I src/libstore -I src/libexpr -I src/libfetchers -DMISSING_REFERENCE
|
|
|
|
# Make sure that the linker strictly evaluates all symbols on .so load on Linux
|
|
# so it will definitely fail to load as expected.
|
|
ifdef HOST_LINUX
|
|
libplugintestfail_LDFLAGS += -z now
|
|
endif
|