From: Juergen Perlinger Date: Mon, 23 Sep 2019 05:18:39 +0000 (+0200) Subject: [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=632d1c33bdd050f4bfc325ef0e88466be0f3f06b;p=thirdparty%2Fntp.git [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no bk: 5d8855afsqSYoaoW85tYSvwq7i654g --- diff --git a/ChangeLog b/ChangeLog index 20b3c6325..a250516a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ * [Bug 3604] Wrong param byte order passing into record_raw_stats() in ntp_io.c - fixed byte and paramter order as suggested by wei6410@sina.com +* [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no * [Bug 3599] Build fails on linux-m68k due to alignment issues - added padding as suggested by John Paul Adrian Glaubitz * [Bug 3590] Update refclock_oncore.c to the new GPS date API diff --git a/sntp/m4/ntp_problemtests.m4 b/sntp/m4/ntp_problemtests.m4 index ebc2cd91b..c7b93c8c0 100644 --- a/sntp/m4/ntp_problemtests.m4 +++ b/sntp/m4/ntp_problemtests.m4 @@ -33,6 +33,10 @@ case "$ntp_ept:$cross:$host" in no:0:*-*-solaris*) ;; *) ntp_test_ntp_restrict="yes" ;; esac +case "$ntp_cv_gc_sections_runs" in + no) ntp_test_ntp_restrict="no" ;; + * ) ;; +esac AC_MSG_RESULT([$ntp_test_ntp_restrict]) AM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes]) @@ -43,6 +47,10 @@ case "$ntp_ept:$cross:$host" in no:0:*-*-solaris*) ;; *) ntp_test_ntp_scanner="yes" ;; esac +case "$ntp_cv_gc_sections_runs" in + no) ntp_test_ntp_scanner="no" ;; + * ) ;; +esac AC_MSG_RESULT([$ntp_test_ntp_scanner]) AM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes]) @@ -53,6 +61,10 @@ case "$ntp_ept:$cross:$host" in no:0:*-*-solaris*) ;; *) ntp_test_ntp_signd="yes" ;; esac +case "$ntp_cv_gc_sections_runs" in + no) ntp_test_ntp_signd="no" ;; + * ) ;; +esac AC_MSG_RESULT([$ntp_test_ntp_signd]) AM_CONDITIONAL([BUILD_TEST_NTP_SIGND], [test x$ntp_test_ntp_signd = xyes])