ncurses: add patch to use LDFLAGS (fixes QA error)
[openembedded.git] / recipes / ncurses / ncurses / use_ldflags.patch
1 diff -urN ncurses-5.4.orig/mk-1st.awk ncurses-5.4/mk-1st.awk
2 --- ncurses-5.4.orig/mk-1st.awk 2004-01-10 20:48:43.000000000 +0000
3 +++ ncurses-5.4/mk-1st.awk      2009-04-02 10:23:04.000000000 +0000
4 @@ -287,7 +287,7 @@
5                                 }
6                                 end_name = lib_name;
7                                 printf "../lib/%s : $(%s_OBJS)\n", lib_name, OBJS
8 -                               printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(SHLIB_LIST)\n", compile, lib_name, OBJS
9 +                               printf "\tcd ../lib && $(LIBTOOL_LINK) $(%s) $(LDFLAGS) -o %s $(%s_OBJS:$o=.lo) -rpath $(DESTDIR)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(SHLIB_LIST)\n", compile, lib_name, OBJS
10                                 print  ""
11                                 print  "install \\"
12                                 print  "install.libs \\"