Skip to content

Commit

Permalink
README: describe LD and LTO variables
Browse files Browse the repository at this point in the history
Demonstrate how to use the mold linker
and how to enable link time optimization.

The mold linker is the only one that directly supports
lone's new embedding capabilities at the moment.
  • Loading branch information
matheusmoreira committed Nov 22, 2023
1 parent 22001a4 commit ec42d45
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ Lone is built by a simple GNU Make file.
The following commands can be used:

make
make lone
make clean
make clean lone
make lone CFLAGS=-g
make lone UAPI=/alternative/linux/uapi/headers
make lone TARGET=x86_64 UAPI=/linux/uapi/headers/x86_64
make lone
make tools
make clean lone
make clean lone tools

make CFLAGS=-g
make LD=mold
make LTO=yes
make UAPI=/alternative/linux/uapi/headers
make TARGET=x86_64 UAPI=/linux/uapi/headers/x86_64

Currently supported targets:

Expand Down

0 comments on commit ec42d45

Please sign in to comment.