]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/ntp/0003-ntpq-fpic.patch
ipset: bump to version 6.36
[coffee/buildroot.git] / package / ntp / 0003-ntpq-fpic.patch
1 ntpq/Makefile.am: add NTP_HARD_CFLAGS
2
3 Pass NTP_HARD_CFLAGS when building ntpq, like in all other ntp
4 modules, to make sure -fPIC is passed.
5
6 Originally taken from
7 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494143c3b4921a5c8b8596d58f2c8b98296bf688.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
11 Index: b/ntpq/Makefile.am
12 ===================================================================
13 --- a/ntpq/Makefile.am
14 +++ b/ntpq/Makefile.am
15 @@ -23,7 +23,7 @@
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
21  CLEANFILES=
22  DISTCLEANFILES=        .version version.c config.log $(man_MANS)
23  ETAGS_ARGS=    Makefile.am