Commit 45ad0c39 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

Ensure that RTS cabal file reflects dependency on libnuma

Test Plan: Validate with Hadrian and `libnuma` support

Reviewers: snowleopard, hvr, erikd, simonmar

Subscribers: izgzhen, alpmestan, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4616
parent 9dbf66d7
......@@ -1258,6 +1258,12 @@ if test "$ac_cv_header_numa_h$ac_cv_header_numaif_h" = "yesyes" ; then
AC_CHECK_LIB(numa, numa_available,HaveLibNuma=1)
fi
AC_DEFINE_UNQUOTED([HAVE_LIBNUMA], [$HaveLibNuma], [Define to 1 if you have libnuma])
if test $HaveLibNuma = "YES" ; then
AC_SUBST([CabalHaveLibNuma],[True])
else
AC_SUBST([CabalHaveLibNuma],[False])
fi
dnl ** Documentation
dnl --------------------------------------------------------------
......
......@@ -20,6 +20,8 @@ flag mingwex
default: @CabalMingwex@
flag libdw
default: @CabalHaveLibdw@
flag libnuma
default: @CabalHaveLibNuma@
flag 64bit
default: @Cabal64bit@
flag leading-underscore
......@@ -88,6 +90,8 @@ library
if flag(libdw)
-- for backtraces
extra-libraries: elf dw
if flag(libnuma)
extra-libraries: numa
if !flag(smp)
cpp-options: -DNOSMP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment