1 ntpq/Makefile.am: add NTP_HARD_CFLAGS
3 Pass NTP_HARD_CFLAGS when building ntpq, like in all other ntp
4 modules, to make sure -fPIC is passed.
7 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494143c3b4921a5c8b8596d58f2c8b98296bf688.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Index: b/ntpq/Makefile.am
12 ===================================================================
13 --- a/ntpq/Makefile.am
14 +++ b/ntpq/Makefile.am
16 ntpq_LDADD += $(LDADD_NTP)
17 noinst_HEADERS= ntpq.h
18 noinst_LIBRARIES= libntpq.a
19 -libntpq_a_CFLAGS= -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
20 +libntpq_a_CFLAGS= $(NTP_HARD_CFLAGS) -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
22 DISTCLEANFILES= .version version.c config.log $(man_MANS)
23 ETAGS_ARGS= Makefile.am