diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-03 09:45:44 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-03 09:45:44 -0200 |
commit | c7275b999acdea9746ff095cf10188b4a3d09b7a (patch) | |
tree | a95eeaad8a2157ed3641d93c98bdc108bcd728d4 /contrib/ntp/sntp/m4/os_cflags.m4 | |
parent | 2b0a9fbf7a64ff2e54d03cebd5bc2d787026eaf8 (diff) | |
parent | fe49fc6e1c94b6c41d1d3844ca219a76da3c70dc (diff) | |
download | FreeBSD-src-c7275b999acdea9746ff095cf10188b4a3d09b7a.zip FreeBSD-src-c7275b999acdea9746ff095cf10188b4a3d09b7a.tar.gz |
Merge branch 'stable/10' into devel
Diffstat (limited to 'contrib/ntp/sntp/m4/os_cflags.m4')
-rw-r--r-- | contrib/ntp/sntp/m4/os_cflags.m4 | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/contrib/ntp/sntp/m4/os_cflags.m4 b/contrib/ntp/sntp/m4/os_cflags.m4 index a2161e6..4ff2ac0 100644 --- a/contrib/ntp/sntp/m4/os_cflags.m4 +++ b/contrib/ntp/sntp/m4/os_cflags.m4 @@ -2,7 +2,7 @@ dnl ###################################################################### dnl Specify additional compile options based on the OS and the compiler AC_DEFUN([NTP_OS_CFLAGS], [ AC_MSG_CHECKING([additional compiler flags]) - # allow ntp_os_flags to be preset to skip this stuff + # allow ntp_os_cflags to be preset to skip this stuff case "${ntp_os_cflags+set}" in set) ;; @@ -90,7 +90,7 @@ AC_DEFUN([NTP_OS_CFLAGS], [ ;; esac esac - case "$ntp_os_flags" in + case "$ntp_os_cflags" in '') ntp_os_cflags_msg="none needed" ;; @@ -100,5 +100,35 @@ AC_DEFUN([NTP_OS_CFLAGS], [ CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" AC_MSG_RESULT([$ntp_os_cflags_msg]) AS_UNSET([ntp_os_cflags_msg]) + ### + AC_MSG_CHECKING([additional linker flags]) + # HMS: The following might still need tweaking + # allow ntp_os_ldflags to be preset to skip this stuff + case "${ntp_os_ldflags+set}" in + set) + ;; + *) + ntp_os_ldflags= + case "$host_os" in + hpux*) + case "$GCC" in + yes) + ntp_os_ldflags="-Wl,+allowdups" + ;; + esac + ;; + esac + ;; + esac + case "$ntp_os_ldflags" in + '') + ntp_os_ldflags_msg="none needed" + ;; + *) + ntp_os_ldflags_msg="$ntp_os_ldflags" + esac + LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" + AC_MSG_RESULT([$ntp_os_ldflags_msg]) + AS_UNSET([ntp_os_ldflags_msg]) ]) dnl ====================================================================== |