Without this change gcc 9.2.1 will complain about undefined references like so:
/usr/bin/ld: bmpsuite.o: in function `srgb_to_linear':
/home/user/src/bmpsuite/bmpsuite.c:193: undefined reference to `pow'
/usr/bin/ld: bmpsuite.o: in function `linear_to_srgb':
/home/suer/src/bmpsuite/bmpsuite.c:203: undefined reference to `pow'
/usr/bin/ld: bmpsuite.o: in function `quantize':
/home/user/src/bmpsuite/bmpsuite.c:328: undefined reference to `floor'
collect2: error: ld returned 1 exit status
This proposed commit fixes the problem. If you need me to change it somehow,
please let me know. :)
The GNU make manual explains how
LDFLAGS
andLDLIBS
ought to be separated.Without this change gcc 9.2.1 will complain about undefined references like so:
This proposed commit fixes the problem. If you need me to change it somehow, please let me know. :)