]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3399] NTP: linker error in 4.2.8p10 during Linux cross-compilation
authorJuergen Perlinger <perlinger@ntp.org>
Fri, 25 Aug 2017 21:32:40 +0000 (21:32 +0000)
committerJuergen Perlinger <perlinger@ntp.org>
Fri, 25 Aug 2017 21:32:40 +0000 (21:32 +0000)
bk: 59a09778uHlWcAuFMFoWvJdkeHHM1A

ChangeLog
sntp/harden/linux
tests/ntpd/Makefile.am

index a1a1cfae45a59975bb12958d206f6c0a48e631b5..b0e9ec802bbc452eb23a095f917d8aac90e29459 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+---
+* [Bug 3399] NTP: linker error in 4.2.8p10 during Linux cross-compilation
+  - initial patch by timeflies@mail2tor.com  <perlinger@ntp.org>
+
 ---
 (4.2.8p10-win-beta1) 2017/03/21 Released by Harlan Stenn <stenn@ntp.org>
 (4.2.8p10)
index db235446e1dbdc794826b326da27fcade0d18783..5f9c4e91f3859ec31596ebe14c0afb96cb7d2d30 100644 (file)
@@ -1,4 +1,4 @@
 # generic linux hardening flags
-NTP_HARD_CFLAGS="-pie -fPIE -fPIC -fstack-protector-all -O1"
+NTP_HARD_CFLAGS="-fPIE -fPIC -fstack-protector-all -O1"
 NTP_HARD_CPPFLAGS="-D_FORTIFY_SOURCE=2"
-NTP_HARD_LDFLAGS="-z relro -z now"
+NTP_HARD_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
index 02ac1a166ab304f0af61fa79dfad3353b48b0cd4..7a0638528bdf7e36fd60504963121f0fa4958abb 100644 (file)
@@ -71,7 +71,8 @@ BUILT_SOURCES +=                      \
 
 ###
 
-test_leapsec_CFLAGS =                  \
+test_leapsec_CFLAGS =                  \
+       $(AM_CFLAGS)                    \
        -I$(top_srcdir)/sntp/unity      \
        $(NULL)
 
@@ -91,6 +92,7 @@ $(srcdir)/run-leapsec.c: $(srcdir)/leapsec.c $(std_unity_list)
 
 ###
 test_ntp_prio_q_CFLAGS =               \
+       $(AM_CFLAGS)                    \
        -I$(top_srcdir)/sntp/unity      \
        $(NULL)
 
@@ -111,6 +113,7 @@ $(srcdir)/run-ntp_prio_q.c: $(srcdir)/ntp_prio_q.c $(std_unity_list)
 
 ###
 test_ntp_restrict_CFLAGS =             \
+       $(AM_CFLAGS)                    \
        -I$(top_srcdir)/sntp/unity      \
        $(NULL)
 
@@ -131,6 +134,7 @@ $(srcdir)/run-ntp_restrict.c: $(srcdir)/ntp_restrict.c $(std_unity_list)
 
 ###
 test_rc_cmdlength_CFLAGS =             \
+       $(AM_CFLAGS)                    \
        -I$(top_srcdir)/sntp/unity      \
        $(NULL)
 
@@ -166,6 +170,7 @@ $(srcdir)/run-t-ntp_signd.c: $(srcdir)/t-ntp_signd.c $(std_unity_list)
 
 ###
 test_ntp_scanner_CFLAGS =              \
+       $(AM_CFLAGS)                    \
        -I$(top_srcdir)/sntp/unity      \
        $(NULL)