rmyorston / pdpmake

Public domain POSIX make
https://frippery.org/make
Other
103 stars 10 forks source link

Makefile: Respect $LDFLAGS when linking the final binary #36

Closed nmeum closed 6 months ago

nmeum commented 6 months ago

Among other things, this allows building with LDFLAGS=-static make to obtain a fully statically linked binary. Furthermore, many Linux distributions include distro-specific optimization in LDFLAGS which are, without this change, not picked up for pdpmake.

rmyorston commented 6 months ago

Applied, thank you.