Build and use shared libraries only
authorAndrew Waterman <waterman@eecs.berkeley.edu>
Fri, 24 Jan 2014 09:23:08 +0000 (01:23 -0800)
committerAndrew Waterman <waterman@eecs.berkeley.edu>
Fri, 24 Jan 2014 09:24:20 +0000 (01:24 -0800)
configure
configure.ac
riscv/riscv.ac

index 1eab8a342f03297fcb71e1d75498342d47074a8f..9e22f3ca776f9ae6e862c973c5e94e5db61550e4 100755 (executable)
--- a/configure
+++ b/configure
@@ -4006,7 +4006,7 @@ fi
 
 CFLAGS="-Wall -O2 -Wno-unused"
 
-CXXFLAGS="-Wall -O2 -std=c++0x"
+CXXFLAGS="-Wall -O2 -std=c++11"
 
 
 #-------------------------------------------------------------------------
@@ -4087,7 +4087,7 @@ if ${ac_cv_lib_pthread_pthread_create+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-lfesvr -pthread $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
index 44fd31a183f7e760c5f3332b697edec53fab1535..d683cc51dbaf9367a95b6d74532959a0372f4e39 100644 (file)
@@ -36,6 +36,7 @@ m4_define( proj_version, [?])
 # Setup
 #-------------------------------------------------------------------------
 
+AC_LANG_CPLUSPLUS
 AC_INIT(proj_name,proj_version,proj_maintainer,proj_abbreviation)
 AC_CONFIG_SRCDIR([riscv/common.h])
 AC_CONFIG_AUX_DIR([scripts])
@@ -72,7 +73,7 @@ AC_HEADER_STDC
 #-------------------------------------------------------------------------
 
 AC_SUBST([CFLAGS],  ["-Wall -O2 -Wno-unused"])
-AC_SUBST([CXXFLAGS],["-Wall -O2 -std=c++0x"])
+AC_SUBST([CXXFLAGS],["-Wall -O2 -std=c++11"])
 
 #-------------------------------------------------------------------------
 # MCPPBS subproject list
index 36a5b6f6121cd02d1c6d07361e01dbb52a5bdc18..a65039b34cb6edb165556695449cf93656ed2324 100644 (file)
@@ -7,9 +7,9 @@ AC_ARG_WITH([fesvr],
   ]
 )
 
-AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR([libpthread is required])])
+AC_CHECK_LIB(fesvr, libfesvr_is_present, [], [AC_MSG_ERROR([libfesvr is required])], [-pthread])
 
-AC_CHECK_LIB(fesvr, libfesvr_is_present, [], [AC_MSG_ERROR([libfesvr is required])])
+AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR([libpthread is required])])
 
 AC_ARG_ENABLE([fpu], AS_HELP_STRING([--disable-fpu], [Disable floating-point]))
 AS_IF([test "x$enable_fpu" != "xno"], [