Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 1 | Add LDFLAGS variable to Makefile so that extra linker flags can be sent via this variable. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 6 | |
| 7 | diff --git a/Makefile b/Makefile |
| 8 | index 4f7af1d..a05a000 100644 |
| 9 | --- a/Makefile |
| 10 | +++ b/Makefile |
| 11 | @@ -83,8 +83,8 @@ endif |
| 12 | |
| 13 | CPPFLAGS= $(CPPFLAGS.ippooltest) |
| 14 | CFLAGS= -I. -Iusl -Icli -MMD -Wall -g $(CPPFLAGS) $(CPPFLAGS.dmalloc) |
| 15 | -LDFLAGS.ippoold= -Wl,-E -L. -Lusl -lusl -lnsl -ldl $(LIBS.dmalloc) -lc |
| 16 | -LDFLAGS.ippoolconfig= -Lcli -lcli -lreadline -lcurses -lnsl $(LIBS.dmalloc) -lc |
| 17 | +LDFLAGS.ippoold= $(LDFLAGS) -Wl,-E -L. -Lusl -lusl -lnsl -ldl $(LIBS.dmalloc) -lc |
| 18 | +LDFLAGS.ippoolconfig= $(LDFLAGS) -Lcli -lcli -lreadline -lcurses -lnsl $(LIBS.dmalloc) -lc |
| 19 | |
| 20 | OPT_CFLAGS?= -O |
| 21 | |