From 7f9f2686a6cc603e8b02bfe17d011a514d5787d9 Mon Sep 17 00:00:00 2001 From: John Ericson <John.Ericson@Obsidian.Systems> Date: Fri, 5 Nov 2021 04:33:49 +0000 Subject: [PATCH] Move visibility and "musttail" annotation checks to the RTS configure All of this should boil down to `AC_DEFINE` not `AC_SUBST`, so it belongs in the RTS configure and should be safe to move without modification. Progress towards #17191 --- configure.ac | 4 ---- rts/configure.ac | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e87a18c6da09..efeb8c24e364 100644 --- a/configure.ac +++ b/configure.ac @@ -1005,10 +1005,6 @@ else AC_SUBST([CabalLeadingUnderscore],[False]) fi -FP_VISIBILITY_HIDDEN - -FP_MUSTTAIL - dnl ** check for librt AC_CHECK_LIB([rt], [clock_gettime], UseLibrt=YES, UseLibrt=NO) AC_SUBST([UseLibrt]) diff --git a/rts/configure.ac b/rts/configure.ac index 403e3e33c476..ff85c6a1cdac 100644 --- a/rts/configure.ac +++ b/rts/configure.ac @@ -33,6 +33,10 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host]) FPTOOLS_SET_PLATFORM_VARS([host], [Host]) FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host]) +FP_VISIBILITY_HIDDEN + +FP_MUSTTAIL + dnl ** check for librt AC_CHECK_FUNCS(clock_gettime timer_settime) FP_CHECK_TIMER_CREATE -- GitLab