Fix mxgot export on mips64el

This commit is contained in:
Gianfranco Costamagna 2024-03-04 09:07:59 +01:00
parent 4d5cf64dc4
commit 02034b1a69

7
debian/rules vendored
View File

@ -32,11 +32,6 @@ else
skip_packages = -Nlibclang-rt-$(LLVM_VERSION)-dev skip_packages = -Nlibclang-rt-$(LLVM_VERSION)-dev
else else
RUNTIMES = compiler-rt;libcxx;libcxxabi 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
endif endif
@ -219,6 +214,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH),mips64el))
# avoid an issue with search path on mips64el # avoid an issue with search path on mips64el
# https://bugs.llvm.org/show_bug.cgi?id=41204 # https://bugs.llvm.org/show_bug.cgi?id=41204
STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=mips64el-linux-gnuabi64 STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=mips64el-linux-gnuabi64
CFLAGS_EXTRA += -mxgot
CXXFLAGS_EXTRA += -mxgot
endif endif
ifneq (,$(filter $(DEB_HOST_ARCH),powerpc)) ifneq (,$(filter $(DEB_HOST_ARCH),powerpc))