]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/0042-BSD-make-support.patch
dnsmasq: Import more patches from upstream
[ipfire-2.x.git] / src / patches / dnsmasq / 0042-BSD-make-support.patch
CommitLineData
6644c1c7
MT
1From 106266761828a0acb006346ae47bf031dee46a5d Mon Sep 17 00:00:00 2001
2From: Simon Kelley <simon@thekelleys.org.uk>
3Date: Sun, 1 Feb 2015 00:15:16 +0000
d54a2ce4 4Subject: [PATCH 42/78] BSD make support
6644c1c7
MT
5
6---
7 Makefile | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
9
10diff --git a/Makefile b/Makefile
11index 21e4a5c4101c..2910320b6452 100644
12--- a/Makefile
13+++ b/Makefile
14@@ -64,8 +64,10 @@ nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG
15 gmp_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC NO_GMP --copy -lgmp`
16 sunos_libs = `if uname | grep SunOS >/dev/null 2>&1; then echo -lsocket -lnsl -lposix4; fi`
17 version = -DVERSION='\"`$(top)/bld/get-version $(top)`\"'
18-copts_conf = .copts_$(shell $(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | \
19- ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ')
20+
21+sum?=$(shell $(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ')
22+sum!=$(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' '
23+copts_conf = .copts_$(sum)
24
25 objs = cache.o rfc1035.o util.o option.o forward.o network.o \
26 dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \
27--
282.1.0
29