Update buildroot from 17.02.2 -> 17.02.3
This commit is contained in:
23
bsp/buildroot/package/ntp/0003-ntpq-fpic.patch
Normal file
23
bsp/buildroot/package/ntp/0003-ntpq-fpic.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
ntpq/Makefile.am: add NTP_HARD_CFLAGS
|
||||
|
||||
Pass NTP_HARD_CFLAGS when building ntpq, like in all other ntp
|
||||
modules, to make sure -fPIC is passed.
|
||||
|
||||
Originally taken from
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494143c3b4921a5c8b8596d58f2c8b98296bf688.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/ntpq/Makefile.am
|
||||
===================================================================
|
||||
--- a/ntpq/Makefile.am
|
||||
+++ b/ntpq/Makefile.am
|
||||
@@ -23,7 +23,7 @@
|
||||
ntpq_LDADD += $(LDADD_NTP)
|
||||
noinst_HEADERS= ntpq.h
|
||||
noinst_LIBRARIES= libntpq.a
|
||||
-libntpq_a_CFLAGS= -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
|
||||
+libntpq_a_CFLAGS= $(NTP_HARD_CFLAGS) -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
|
||||
CLEANFILES=
|
||||
DISTCLEANFILES= .version version.c config.log $(man_MANS)
|
||||
ETAGS_ARGS= Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
# From http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p9.tar.gz.md5
|
||||
md5 857452b05f5f2e033786f77ade1974ed ntp-4.2.8p9.tar.gz
|
||||
# From https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p10.tar.gz.md5
|
||||
md5 745384ed0dedb3f66b33fe84d66466f9 ntp-4.2.8p10.tar.gz
|
||||
# Calculated based on the hash above
|
||||
sha256 b724287778e1bac625b447327c9851eedef020517a3545625e9f652a90f30b72 ntp-4.2.8p9.tar.gz
|
||||
sha256 ddd2366e64219b9efa0f7438e06800d0db394ac5c88e13c17b70d0dcdf99b99f ntp-4.2.8p10.tar.gz
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
################################################################################
|
||||
|
||||
NTP_VERSION_MAJOR = 4.2
|
||||
NTP_VERSION = $(NTP_VERSION_MAJOR).8p9
|
||||
NTP_SITE = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
|
||||
NTP_VERSION = $(NTP_VERSION_MAJOR).8p10
|
||||
NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
|
||||
NTP_DEPENDENCIES = host-pkgconf libevent openssl $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
||||
NTP_LICENSE = ntp license
|
||||
NTP_LICENSE_FILES = COPYRIGHT
|
||||
@@ -21,8 +21,15 @@ NTP_CONF_OPTS = \
|
||||
--with-crypto
|
||||
|
||||
# 0002-ntp-syscalls-fallback.patch
|
||||
# 0003-ntpq-fpic.patch
|
||||
NTP_AUTORECONF = YES
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
||||
NTP_CONF_OPTS += --with-locfile=linux
|
||||
else
|
||||
NTP_CONF_OPTS += --with-locfile=default
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
NTP_CONF_OPTS += --enable-linuxcaps
|
||||
NTP_DEPENDENCIES += libcap
|
||||
|
||||
Reference in New Issue
Block a user