aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2019-09-02 16:01:04 -0700
committerAndrew Waterman <andrew@sifive.com>2019-09-02 16:02:01 -0700
commite53a1d410b6e4e691780f74373c38e4230e12605 (patch)
treeac261cbe980d5a2a6867b0149dd5ba4d96b2a7c9 /configure.ac
parentf7b1f468a7c6c4344aed9679fa623a77ba308d41 (diff)
downloadriscv-isa-sim-e53a1d410b6e4e691780f74373c38e4230e12605.zip
riscv-isa-sim-e53a1d410b6e4e691780f74373c38e4230e12605.tar.gz
riscv-isa-sim-e53a1d410b6e4e691780f74373c38e4230e12605.tar.bz2
Fix OSX build
Closes #326
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f7a28db..b4bbd43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,8 @@ AC_CONFIG_AUX_DIR([scripts])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
+m4_include(ax_check_link_flag.m4)
+
#-------------------------------------------------------------------------
# Checks for programs
#-------------------------------------------------------------------------
@@ -84,7 +86,7 @@ AC_CHECK_TYPE([__int128_t], AC_SUBST([HAVE_INT128],[yes]))
AC_SUBST([CFLAGS], ["-Wall -Wno-unused -g -O2"])
AC_SUBST([CXXFLAGS],["-Wall -Wno-unused -g -O2 -std=c++11"])
-AC_SUBST([LDFLAGS], ["-Wl,--export-dynamic"])
+AX_CHECK_LINK_FLAG([-Wl,--export-dynamic], [LDFLAGS="-Wl,--export-dynamic"])
#-------------------------------------------------------------------------
# MCPPBS subproject list