From: Christian Wiese Date: Mon, 17 Mar 2008 17:23:12 +0000 (+0100) Subject: [BUILD] Replace hardcoded 'LD = gcc' with 'LD = $(CC)' X-Git-Tag: v1.3.15~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f630830b60c5a6e27df26aa333713617ecbf880f;p=thirdparty%2Fhaproxy.git [BUILD] Replace hardcoded 'LD = gcc' with 'LD = $(CC)' haproxy relies on linking the binary using gcc, so there is no real need to hardcode both (CC and LD). Setting 'LD = $(CC)' will make the build system a bit more cross-compile friendly because only the right cross-compiler has to be passed via make. --- diff --git a/Makefile b/Makefile index 29006691c0..f9696df660 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ CPU = generic #### Toolchain options. # GCC is normally used both for compiling and linking. CC = gcc -LD = gcc +LD = $(CC) #### Debug flags (typically "-g"). # Those flags only feed CFLAGS so it is not mandatory to use this form.