From b1c040569ecb2aeb9b98c47e50b2668ead31a1e7 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 27 Mar 2021 12:38:11 +0100 Subject: [PATCH] On some arch, we need another version of cmake. in some case, it needs a specific version of the lib. So, provide the ld_library_path for these --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 4575ff50..f6dd075c 100755 --- a/debian/rules +++ b/debian/rules @@ -419,6 +419,9 @@ VERBOSE=VERBOSE=1 #VERBOSE=-v debian-full-build: + if test -f /tmp/cmake/bin/cmake; then \ + export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/tmp/cmake/bin/; \ + fi; \ $(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CFLAGS="$(CFLAGS_EXTRA)" CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 $(BUILD_METHOD) # Check the stage 2 build worked @@ -496,6 +499,7 @@ debian-libcxxabi-build: CMAKE_BIN=cmake; \ if test -f /tmp/cmake/bin/cmake; then \ CMAKE_BIN=/tmp/cmake/bin/cmake; \ + export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/tmp/cmake/bin/; \ fi; \ echo "Using cmake: $$CMAKE_BIN"; \ cd libcxx/build && \