William A. Kennington III | b2c5306 | 2021-02-09 17:48:19 -0800 | [diff] [blame] | 1 | From 8fc429f59df50e1f468c8e9616a6e7ef42cc6ebf Mon Sep 17 00:00:00 2001 |
| 2 | From: "William A. Kennington III" <wak@google.com> |
| 3 | Date: Thu, 28 May 2020 22:51:47 -0700 |
| 4 | Subject: [PATCH] makefile: Add missing LDFLAGS |
| 5 | |
| 6 | --- |
| 7 | Makefile | 4 ++-- |
| 8 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 9 | |
| 10 | diff --git a/Makefile b/Makefile |
| 11 | index a4d5f10..4976726 100644 |
| 12 | --- a/Makefile |
| 13 | +++ b/Makefile |
| 14 | @@ -6,7 +6,7 @@ all: example checker |
| 15 | CFLAGS=-g |
| 16 | |
| 17 | checker: confcheck.o |
| 18 | - $(CC) $(CFLAGS) -o confcheck confcheck.o -lconfig |
| 19 | + $(CC) $(CFLAGS) -o confcheck confcheck.o $(LDFLAGS) -lconfig |
| 20 | |
| 21 | |
| 22 | install: |
| 23 | @@ -19,7 +19,7 @@ uninstall: |
| 24 | |
| 25 | EG_OBJ=example.o parser.o argtable3.o |
| 26 | example: $(EG_OBJ) |
| 27 | - $(CC) $(CFLAGS) -o example $(EG_OBJ) -lconfig |
| 28 | + $(CC) $(CFLAGS) -o example $(EG_OBJ) $(LDFLAGS) -lconfig |
| 29 | |
| 30 | example.c: eg_conf.cfg |
| 31 | ./conf2struct eg_conf.cfg |
| 32 | -- |
| 33 | 2.27.0.rc0.183.gde8f92d652-goog |
| 34 | |