joan2937 / lg

Linux C libraries and Python modules for manipulating GPIO
The Unlicense
57 stars 20 forks source link

Use LDFLAGS (and CPPFLAGS) when building #8

Closed waveform80 closed 3 years ago

waveform80 commented 3 years ago

A fairly trivial PR to include $LDFLAGS and $CPPFLAGS in the $CC calls from the Makefile; this is primarily to permit the extra "hardening" flags that debhelper injects into these variables to be used during compilation.

I assume the $LDFLAGS inclusion is probably uncontroversial, but I've split the $CPPFLAGS inclusion out into a separate commit in case you don't want to include that one, or would prefer it done more explicitly (at the moment it just tags $CPPFLAGS onto the end of $CFLAGS which is admittedly lazy :).