Skip to content

Commit db665c0

Browse files
committed
Cross-compiling support.
Applied alex-eri's patch openwrt/patches/310-Makefile_crosscompile.patch to compile for OpenWrt. Pull #61.
1 parent c40bcb9 commit db665c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my
6464
fi
6565

6666
%_sh.o: libipt_NETFLOW.c
67-
gcc -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c
67+
$(CC) $(CFLAGS) -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c
6868

6969
%.so: %_sh.o
70-
gcc -shared -o $@ $<
70+
$(CC) -shared -o $@ $<
7171

7272
version.h: ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile
7373
@./version.sh --define > version.h

0 commit comments

Comments
 (0)