Browse Source

deps: pass LDFLAGS+=-static (#11138)

This is required when `build_old_libs=no` is used in `libtool`.

Fixes https://github.com/neovim/neovim/issues/11198
tags/nightly
Daniel Hahler 1 month ago
parent
commit
2e14dffbb4
No account linked to committer's email address
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      third-party/cmake/BuildLibtermkey.cmake
  2. +1
    -0
      third-party/cmake/BuildLibvterm.cmake
  3. +1
    -0
      third-party/cmake/BuildUnibilium.cmake

+ 1
- 0
third-party/cmake/BuildLibtermkey.cmake View File

@@ -48,6 +48,7 @@ ExternalProject_Add(libtermkey
PREFIX=${DEPS_INSTALL_DIR}
PKG_CONFIG_PATH=${DEPS_LIB_DIR}/pkgconfig
CFLAGS=-fPIC
LDFLAGS+=-static
${DEFAULT_MAKE_CFLAGS}
install)
endif()

+ 1
- 0
third-party/cmake/BuildLibvterm.cmake View File

@@ -58,6 +58,7 @@ else()
set(LIBVTERM_INSTALL_COMMAND ${MAKE_PRG} CC=${DEPS_C_COMPILER}
PREFIX=${DEPS_INSTALL_DIR}
CFLAGS=-fPIC
LDFLAGS+=-static
${DEFAULT_MAKE_CFLAGS}
install)
endif()

+ 1
- 0
third-party/cmake/BuildUnibilium.cmake View File

@@ -40,6 +40,7 @@ else()
BUILD_COMMAND ${MAKE_PRG} CC=${DEPS_C_COMPILER}
PREFIX=${DEPS_INSTALL_DIR}
CFLAGS=-fPIC
LDFLAGS+=-static
INSTALL_COMMAND ${MAKE_PRG} PREFIX=${DEPS_INSTALL_DIR} install)
endif()


Loading…
Cancel
Save