[Groonga-commit] groonga/groonga at b95e409 [master] Check built-in atomic library explicitly

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Feb 24 18:34:19 JST 2016


HAYASHI Kentaro	2016-02-24 18:34:19 +0900 (Wed, 24 Feb 2016)

  New Revision: b95e40945bd205a91c635041d94aeca20890bf03
  https://github.com/groonga/groonga/commit/b95e40945bd205a91c635041d94aeca20890bf03

  Message:
    Check built-in atomic library explicitly
    
    This fix is at least required for mips/mipsel architectures.

  Modified files:
    configure.ac
    lib/Makefile.am

  Modified: configure.ac (+4 -0)
===================================================================
--- configure.ac    2016-02-24 18:30:04 +0900 (be784b4)
+++ configure.ac    2016-02-24 18:34:19 +0900 (915cf26)
@@ -1242,6 +1242,10 @@ AM_CONDITIONAL([ENABLE_SUGGEST_LEARNER],
                      "$libevent_available" = "yes" -a \
                      "$message_pack_available" = "yes"])
 
+# Check built-in atomic
+AC_CHECK_LIB(atomic, __atomic_store_8, [ATOMIC_LIBS="-latomic"])
+AC_SUBST(ATOMIC_LIBS)
+
 # Document
 AC_MSG_CHECKING([whether enable document])
 AC_ARG_ENABLE(document,

  Modified: lib/Makefile.am (+2 -1)
===================================================================
--- lib/Makefile.am    2016-02-24 18:30:04 +0900 (93c9f2d)
+++ lib/Makefile.am    2016-02-24 18:34:19 +0900 (195b329)
@@ -46,7 +46,8 @@ endif
 
 libgroonga_la_LIBADD +=				\
 	$(ONIGMO_LIBS)				\
-	$(LIBLZ4_LIBS)
+	$(LIBLZ4_LIBS)				\
+	$(ATOMIC_LIBS)
 
 if WITH_LEMON
 BUILT_SOURCES =					\
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index