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.14.4~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=df2df3e0ffd508a3f12fdc33a998bb04c470e985;p=haproxy.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 3fb0acba3..5624b1e49 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,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.