diff options
author | Andrew Waterman <andrew@sifive.com> | 2019-09-02 16:01:04 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-09-04 01:34:20 -0700 |
commit | 85e78ab11f39ce1b52b980d6e1c46c68789d2fe4 (patch) | |
tree | 2e705d5139b360089dfa09dc4db15045e36dab9f /configure.ac | |
parent | f998978e2a08b55fbe9a6701bacc5f67d3c63a87 (diff) | |
download | spike-85e78ab11f39ce1b52b980d6e1c46c68789d2fe4.zip spike-85e78ab11f39ce1b52b980d6e1c46c68789d2fe4.tar.gz spike-85e78ab11f39ce1b52b980d6e1c46c68789d2fe4.tar.bz2 |
Fix OSX build
Closes #326
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
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 |