Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix configure so the right CC gets picked up
unlike one would expect, setting `CC?=gcc -m32` in config.mak did not actually lead to `gcc -m32` being used as compiler when running make, even though CC was not declared anywhere else. it appears as if the CC variable is implicitly defined by GNU make, so using the ?= assignment (meaning "assign only if not already assigned") did not have an effect. when this configure script and Makefile here were written, they were modeled after the interface provided by GNU autoconf (so there are no surprises for the user). the assumption was that environment variables passed during configure are usually stored and used for the compile, but can be overridden when running make by exporting the variables again. in reality though they can not be overridden by environment when running make, as tests showed. because of that, the other user-supplied variables will now be hard-assigned as well. closes rofl0r#152 commit message by @rofl0r.
- Loading branch information