do not hardcode LD=ld in GNUmakefile
Bug #1913238 reported by
Tom Gillespie
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When cross compiling for an alternate libc implementation (e.g. musl for
static linking) a different linker required. It is currenly impossible
to pass LD=some-
to make because the GNUmakefile hardcodes LD=ld. This commit fixes that
an also make it so that make-target-
way that it inherits CC.
I'm to 100% sure that this works as expected. I've tried it in what
should be a clean environment without issue, but am not entirely sure
that LD will be set correctly by default.
To post a comment you must log in.
I ran into something similar when trying to build SBCL on windows with Cygwin and CC=x86_ 64-w64- mingw32- gcc. The config file src/runtime/ Config. x86-64- win32 uses CC=gcc even though I was trying to build with Mingw32. I was able to get around it by modifying the file to use CC ?= gcc.
I didn't try it, but using LD ?= ld might work for you in src/runtime/ GNUmakefile.