[Lunar-commits] <moonbase-other> dnsmasq: Honor CFLAGS and LDFLAGS

Stefan Wold ratler at lunar-linux.org
Tue Nov 5 21:17:45 CET 2013


commit aa87776fb5496ca232a43206c10d1a1b06fe6ae4
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Tue, 05 Nov 2013 11:36:47 -0800
URL: https://github.com/lunar-linux/moonbase-other/commit/aa87776fb5496ca232a43206c10d1a1b06fe6ae4

dnsmasq: Honor CFLAGS and LDFLAGS
---
  net/dnsmasq/BUILD | +7/-3     
  1 file changed, 7 insertions(+), 3 deletions(-)

--- a/net/dnsmasq/BUILD
+++ b/net/dnsmasq/BUILD
@@ -2,10 +2,14 @@
 add_priv_user dnsmasq &&
 
 sedit '/^#ifdef DNSMASQ_COMPILE_OPTS/ i#define HAVE_DBUS' src/config.h &&
-make &&
+make "CFLAGS=$CFLAGS" "LDFLAGS=$LDFLAGS" &&
 prepare_install &&
 make PREFIX=/usr BINDIR=/usr/bin install &&
 
-[ ! -f /etc/dbus-1/systemd/dnsmasq.conf ] && install -D -m0644 dbus/dnsmasq.conf /etc/dbus-1/system.d/dnsmasq.conf
-[ ! -f /etc/dnsmasq.conf ] && install -D -m0644 dnsmasq.conf.example /etc/dnsmasq.conf
+if [ ! -f /etc/dbus-1/systemd/dnsmasq.conf ]; then
+  install -D -m0644 dbus/dnsmasq.conf /etc/dbus-1/system.d/dnsmasq.conf
+fi &&
 
+if [ ! -f /etc/dnsmasq.conf ]; then
+  install -D -m0644 dnsmasq.conf.example /etc/dnsmasq.conf
+fi




More information about the Lunar-commits mailing list