From 69043168302ec7c0bcfaa8b1fb56bfae500bd139 Mon Sep 17 00:00:00 2001
From: Nick Sarnie <commendsarnex@gmail.com>
Date: Sun, 8 Apr 2018 16:11:55 -0400
Subject: [PATCH] Don't ignore LDFLAGS

Bug: https://bugs.gentoo.org/263129

Signed-off-by: Nick Sarnie <commendsarnex@gmail.com>
---
 lib/megaco/src/flex/Makefile.in | 2 +-
 lib/odbc/c_src/Makefile.in      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in
index c37ad4d702..400024ca0c 100644
--- a/lib/megaco/src/flex/Makefile.in
+++ b/lib/megaco/src/flex/Makefile.in
@@ -66,7 +66,7 @@ endif
 CC      = $(DED_CC)
 CFLAGS_MT = $(CFLAGS) $(DED_THR_DEFS)
 LD      = $(DED_LD)
-LDFLAGS = $(DED_LDFLAGS)
+LDFLAGS += $(DED_LDFLAGS)
 LEX     = @LEX@
 LEXLIB  = @LEXLIB@
 PERL    = @PERL@
diff --git a/lib/odbc/c_src/Makefile.in b/lib/odbc/c_src/Makefile.in
index 784e73c47e..51c023f710 100644
--- a/lib/odbc/c_src/Makefile.in
+++ b/lib/odbc/c_src/Makefile.in
@@ -82,7 +82,7 @@ CC =  @CC@
 CFLAGS = $(TYPEFLAGS) @CFLAGS@ @THR_DEFS@ @DEFS@
 EI_LDFLAGS = -L$(EI_ROOT)/obj$(TYPEMARKER)/$(TARGET)
 LD = @LD@
-LDFLAGS =  $(ODBC_LIB) $(EI_LDFLAGS)
+LDFLAGS += $(ODBC_LIB) $(EI_LDFLAGS)
 LIBS = @LIBS@ @THR_LIBS@ $(EI_LIB)
 INCLUDES = -I. $(ODBC_INCLUDE) $(EI_INCLUDE)
 TARGET_FLAGS =  @TARGET_FLAGS@
-- 
2.17.0

