Closed eliasrg closed 3 years ago
Fixed, thank you for reporting. (It somehow worked on my system.)
There is a huge amount of redundancy in the Makefile, and I'm not good in Unix DSLs, commits to improve it are welcome.
I am not an expert on make
, but I would probably recommend to remove the ifndef
s entirely. Just write CFLAGS=...
directly. They can still be overridden if necessary, by calling make CFLAGS=...
. As it is now, if CFLAGS
is in the environment (as it is in Arch's build scripts), this value will be used.
Or maybe it would be even better to do CFLAGS += ...
. I am not quite sure what would be best.
ifndefs removed
When trying to build the package on Arch Linux, I got an error:
On line 2 in
Makefile
there is the lineifndef $(CFLAGS)
. I think this should beifndef CFLAGS
. As explained in the make manual,ifdef
andifndef
take a variable name, not a reference. In this case, ifCFLAGS
is empty, the line would expand to justifndef
, a syntax error.