mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
libports: fix undefined reference for gmp on arm_v8
* enable native 'invert_limb' implemenation * disable native 'udiv_qrnnd' implemenation fixes #3598
This commit is contained in:
parent
3813f9772a
commit
bd284347da
@ -6,20 +6,25 @@ FILTER_OUT += udiv_w_sdiv.c
|
||||
|
||||
# add ARM-specific assembly files and filter out the generic C files if needed
|
||||
|
||||
SRC_ASM += copyd.asm copyi.asm
|
||||
SRC_ASM += copyd.asm copyi.asm invert_limb.asm
|
||||
|
||||
FILTER_OUT += popham.c
|
||||
FILTER_OUT += logops_n.c sec_div.c sec_pi1_div.c copyi.c copyd.c
|
||||
FILTER_OUT += pre_divrem_1.c logops_n.c sec_div.c sec_pi1_div.c copyi.c copyd.c
|
||||
|
||||
SRC_C += $(notdir $(wildcard $(REP_DIR)/src/lib/gmp/mpn/spec/64bit/*.c))
|
||||
SRC_C += $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(GMP_MPN_DIR)/generic/*.c)))
|
||||
|
||||
#
|
||||
# Since aarch64 does not implement 'udiv_qrnnd ' this is required to override
|
||||
# 'libports/include/gmp/config.h' setting.
|
||||
#
|
||||
CC_OPT += -DHAVE_NATIVE_mpn_invert_limp=1 -UHAVE_NATIVE_mpn_udiv_qrnnd
|
||||
|
||||
include $(REP_DIR)/lib/mk/gmp.inc
|
||||
|
||||
PWD := $(shell pwd)
|
||||
|
||||
SRC_O += $(SRC_ASM:.asm=.o) hamdist.o popcount.o
|
||||
|
||||
#
|
||||
# Create execution environment for the m4-ccas tool, which is used by the gmp
|
||||
# library to assemble asm files to object files. Make sure to execute this rule
|
||||
|
Loading…
x
Reference in New Issue
Block a user