Compile error on wildcard.c on Linux with GNU make
Advanced PNG optimization program
Status: Beta
Brought to you by:
cosmin
When compiling 0.7.9 on a Linux system using GNU make 4.4.1, the compilation ends with:
gcc -c -O2 -Wall -Wextra -Wundef -o wildargs.o wildargs.c
cc1: fatal error: wildargs.c: No such file or directory
This is because $* as used in the wildargs rule strips directory paths. The attached patch replaces this with $< which fixes the problem, is defined by POSIX make and should be portable.
Hello, apologies for missing the opportunity to give credit in a "co-authored-by" tag.
For my future reference, could you please confirm if this is your GitHub account?
https://github.com/dfandrich
Sincerely,
Cosmin