From e234872bfa9a634770fe50be18805b5e93785f48 Mon Sep 17 00:00:00 2001 From: Anbang Wen Date: Sun, 13 Feb 2022 15:24:25 -0800 Subject: add LDFLAGS to statically link libvterm libvterm defaults to generate a dynamic library, however the emacs module prefers a static one. Fix #333 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db61c5e..4917264 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,7 +75,7 @@ else() GIT_REPOSITORY https://github.com/Sbozzolo/libvterm-mirror.git GIT_TAG 64f1775952dbe001e989f2ab679563b54f2fca55 CONFIGURE_COMMAND "" - BUILD_COMMAND ${LIBVTERM_BUILD_COMMAND} "CFLAGS='-fPIC'" + BUILD_COMMAND ${LIBVTERM_BUILD_COMMAND} "CFLAGS='-fPIC'" "LDFLAGS='-static'" BUILD_IN_SOURCE ON INSTALL_COMMAND "") -- cgit v1.0