configure: Check for and explicitly link against -latomic

Some C libraries, such as uClibc, require an explicit link for some atomic
functions. Check for any libatomic, and explcily link it.
This commit is contained in:
Martin Willi
2016-06-14 14:27:20 +02:00
parent 796c36ade1
commit 518a5b2ece
13 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ pki_SOURCES = pki.c pki.h command.c command.h \
pki_LDADD = \
$(top_builddir)/src/libstrongswan/libstrongswan.la \
$(PTHREADLIB) $(DLLIB)
$(PTHREADLIB) $(ATOMICLIB) $(DLLIB)
pki.o : $(top_builddir)/config.status