Commit 6709baea authored by Jisyang Mwo's avatar Jisyang Mwo

Makefile: lzma is required while running tests

The following error was produced when -llzma is not specified:

$ make check
cc -O2 -fPIC -Wimplicit -I../include -c ../test/test_extension/test.c -o ../test/test_extension/test.o -g
cc -shared ../test/test_extension/test.o -o ../test/test_extension/test.so -g
pyston: Compiling runtime/inline/link_forcer.o.bc
pyston: Compiling ../tools/publicize.o
pyston: Linking ../tools/publicize
elfxx.c:193: error: undefined reference to 'lzma_stream_footer_decode'
elfxx.c:200: error: undefined reference to 'lzma_index_buffer_decode'
elfxx.c:204: error: undefined reference to 'lzma_index_size'
elfxx.c:209: error: undefined reference to 'lzma_index_end'
elfxx.c:206: error: undefined reference to 'lzma_index_uncompressed_size'
elfxx.c:209: error: undefined reference to 'lzma_index_end'
elfxx.c:277: error: undefined reference to 'lzma_stream_buffer_decode'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [../tools/publicize] Error 1
parent c9b95ee7
......@@ -140,7 +140,7 @@ CXXFLAGS_PROFILE = $(LLVM_PROFILE_CXXFLAGS) $(COMMON_CXXFLAGS) -pg -O3 -DNDEBUG
CXXFLAGS_RELEASE := $(LLVM_RELEASE_CXXFLAGS) $(COMMON_CXXFLAGS) -O3 -fstrict-aliasing -enable-tbaa -DNDEBUG -DNVALGRIND -DBINARY_SUFFIX=_release -DBINARY_STRIPPED_SUFFIX= $(EXTRA_CXXFLAGS)
# Use our "custom linker" that calls gold if available
COMMON_LDFLAGS := -B../tools/build_system -L/usr/local/lib -lpthread -ldl -lcurses -lm -lunwind -lz -L$(DEPS_DIR)/gcc-4.8.2-install/lib64
COMMON_LDFLAGS := -B../tools/build_system -L/usr/local/lib -lpthread -ldl -lcurses -lm -lunwind -lz -llzma -L$(DEPS_DIR)/gcc-4.8.2-install/lib64
# Make sure that we put all symbols in the dynamic symbol table so that MCJIT can load them;
# TODO should probably do the linking before MCJIT
COMMON_LDFLAGS += -Wl,-E
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment