Introduction to yasm
Yasm is a complete rewrite of the
NASM-2.16.03 assembler. It supports the x86 and
AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and
outputs binary, ELF32 and ELF64 object formats.
Note
Development versions of BLFS may not build or run some packages
properly if LFS or dependencies have been updated since the most
recent stable versions of the books.
Package Information
yasm Dependencies
Optional
cython-3.1.2 and Python2
Installation of yasm
First, fix a problem when building with gcc-15:
sed -e 's/def __cplusplus/ defined(__cplusplus) || __STDC_VERSION__ >= 202311L/' \
-i libyasm/bitvect.h
Install yasm by running the
following commands:
sed -i 's#) ytasm.*#)#' Makefile.in &&
./configure --prefix=/usr &&
make
To test the results, issue: make -j1
check.
Now, as the root
user:
make install