]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] Replace hardcoded 'LD = gcc' with 'LD = $(CC)'
authorChristian Wiese <morfoh@opensde.org>
Mon, 17 Mar 2008 17:23:12 +0000 (18:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2008 21:49:28 +0000 (22:49 +0100)
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.

Makefile

index 29006691c0b5c3987a8c07d39672df71f04ce6b7..f9696df660d95b26c5d6d56f551cb13c91a67edf 100644 (file)
--- 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.