More debug shows that it will acquire the following status from the libhugetlbfs-2.20/Makefile
CC64 = $(CC) ELF64 = aarch64elf TMPLIB64 = lib64 CUSTOM_LDSCRIPTS = no
And in libhugetlbfs-2.20/test/Makefile the linkhuge_rw will be built since:
ifdef ELF64 ifeq ($(CUSTOM_LDSCRIPTS),yes) TESTS += $(LDSCRIPT_TESTS) $(HUGELINK_TESTS) $(HUGELINK_TESTS:%=xB.%) \ $(HUGELINK_TESTS:%=xBDT.%) else TESTS += $(LDSCRIPT_TESTS) $(HUGELINK_TESTS) $(HUGELINK_RW_TESTS) endif
From here it will pass the ELF64 check, but go to the else as the CUSTOM_LDSCRIPTS is "no". This explains why it's not being built for amd64
More debug shows that it will acquire the following status from the libhugetlbfs- 2.20/Makefile
CC64 = $(CC)
ELF64 = aarch64elf
TMPLIB64 = lib64
CUSTOM_LDSCRIPTS = no
And in libhugetlbfs- 2.20/test/ Makefile the linkhuge_rw will be built since:
ifdef ELF64 LDSCRIPTS) ,yes) TESTS:% =xB.%) \
$(HUGELINK_ TESTS:% =xBDT.% ) RW_TESTS)
ifeq ($(CUSTOM_
TESTS += $(LDSCRIPT_TESTS) $(HUGELINK_TESTS) $(HUGELINK_
else
TESTS += $(LDSCRIPT_TESTS) $(HUGELINK_TESTS) $(HUGELINK_
endif
From here it will pass the ELF64 check, but go to the else as the CUSTOM_LDSCRIPTS is "no".
This explains why it's not being built for amd64