Skip to content

Commit 73fed7f

Browse files
committed
fix 'someone does not honour COPTS correctly' when building for OpenWrt
1 parent 944211d commit 73fed7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
CC ?= gcc
3-
CFLAGS = -O2 -Wall -Wwrite-strings -pedantic -std=gnu99
3+
CFLAGS ?= -O2 -Wall -Wwrite-strings -pedantic
4+
CFLAGS += -std=gnu99
45
POST_LINKING =
56
FEATURES ?= auth cmd natpmp nss upnp #dns debug web
67

@@ -72,7 +73,7 @@ libnss_kadnode.so.2:
7273
$(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,libnss_kadnode.so.2 -o build/libnss_kadnode.so.2 build/ext-libnss.o
7374

7475
kadnode-ctl:
75-
$(CC) src/kadnode-ctl.c -o build/kadnode-ctl
76+
$(CC) $(CFLAGS) src/kadnode-ctl.c -o build/kadnode-ctl
7677

7778
kadnode: $(OBJS) $(EXTRA)
7879
$(CC) $(OBJS) -o build/kadnode $(POST_LINKING)

0 commit comments

Comments
 (0)