From 6e713f2f5c760e2df8379a7a74ee6c3e71100428 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 17 Sep 2020 15:50:47 +0100 Subject: [PATCH] Fixed haproxy build. (#4454) --- projects/haproxy/build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/haproxy/build.sh b/projects/haproxy/build.sh index 70a61ac7e..b7afc78d5 100755 --- a/projects/haproxy/build.sh +++ b/projects/haproxy/build.sh @@ -17,11 +17,9 @@ export ORIG_CFLAGS=${CFLAGS} cd haproxy # Fix some things in the Makefile where there are no options available -sed 's/LD = $(CC)/LD = ${CXX}/g' -i Makefile -sed 's/CC = gcc/#CC = gcc/g' -i Makefile sed 's/CFLAGS = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS) $(SPEC_CFLAGS)/CFLAGS = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS) $(SPEC_CFLAGS) ${ORIG_CFLAGS}/g' -i Makefile sed 's/LDFLAGS = $(ARCH_FLAGS) -g/LDFLAGS = $(ARCH_FLAGS) -g ${CXXFLAGS}/g' -i Makefile -make TARGET=generic +make TARGET=generic CC=${CC} LD=${CXX} # Make a copy of the main file since it has many global functions we need to declare # We dont want the main function but we need the rest of the stuff in haproxy.c