Upstream-Status: Pending

LDFLAGS_FOR_BUILD should be required when doing link for qgen.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>

diff -Nurp linux-atm-2.5.2.orig/configure.in linux-atm-2.5.2/configure.in
--- linux-atm-2.5.2.orig/configure.in	2010-12-28 23:36:07.000000000 +0800
+++ linux-atm-2.5.2/configure.in	2014-12-22 10:25:23.830510932 +0800
@@ -66,6 +66,7 @@ else
 fi
 AC_SUBST(CC_FOR_BUILD)
 AC_SUBST(CFLAGS_FOR_BUILD)
+AC_SUBST(LDFLAGS_FOR_BUILD)
 dnl Add -d flag to bison/yacc to create intermediate .h files
 YACC="$YACC -d"
 
diff -Nurp linux-atm-2.5.2.orig/src/qgen/Makefile.am linux-atm-2.5.2/src/qgen/Makefile.am
--- linux-atm-2.5.2.orig/src/qgen/Makefile.am	2010-12-28 22:29:31.000000000 +0800
+++ linux-atm-2.5.2/src/qgen/Makefile.am	2014-12-22 10:23:51.914508318 +0800
@@ -5,7 +5,7 @@ qgen_SOURCES = common.c common.h file.c
 qgen_LDADD = -lfl
 
 COMPILE = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@
-LINK = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ -o $@
+LINK = @CC_FOR_BUILD@ @CFLAGS_FOR_BUILD@ @LDFLAGS_FOR_BUILD@ -o $@
 
 #TESTS = $(check_PROGRAMS)
 
diff -Nurp linux-atm-2.5.2.orig/src/qgen/Makefile.in linux-atm-2.5.2/src/qgen/Makefile.in
--- linux-atm-2.5.2.orig/src/qgen/Makefile.in	2010-12-29 00:06:11.000000000 +0800
+++ linux-atm-2.5.2/src/qgen/Makefile.in	2014-12-22 10:23:51.914508318 +0800
@@ -106,6 +106,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 LD = @LD@
 LDFLAGS = @LDFLAGS@
+LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
 LEX = @LEX@
 LEXLIB = @LEXLIB@
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
