From 02034b1a690fa3234b7959a60b33edc197e2f5c2 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Mon, 4 Mar 2024 09:07:59 +0100 Subject: [PATCH] Fix mxgot export on mips64el --- debian/rules | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/debian/rules b/debian/rules index 0754c670..7fdf78f6 100755 --- a/debian/rules +++ b/debian/rules @@ -32,11 +32,6 @@ else skip_packages = -Nlibclang-rt-$(LLVM_VERSION)-dev else RUNTIMES = compiler-rt;libcxx;libcxxabi - ifeq ($(DEB_HOST_ARCH),mips64el) - export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto hardening=-stackprotector,-stackprotectorstrong - CFLAGS_EXTRA += -mxgot - CXXFLAGS_EXTRA += -mxgot - endif endif endif @@ -219,6 +214,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH),mips64el)) # avoid an issue with search path on mips64el # https://bugs.llvm.org/show_bug.cgi?id=41204 STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=mips64el-linux-gnuabi64 + CFLAGS_EXTRA += -mxgot + CXXFLAGS_EXTRA += -mxgot endif ifneq (,$(filter $(DEB_HOST_ARCH),powerpc))