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:
@@ -159,7 +159,7 @@ AM_LDFLAGS = \
|
||||
|
||||
libcharon_la_LIBADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
-lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
|
||||
-lm $(PTHREADLIB) $(ATOMICLIB) $(DLLIB) $(SOCKLIB)
|
||||
|
||||
if USE_WINDOWS
|
||||
libcharon_la_LIBADD += -lws2_32
|
||||
|
||||
Reference in New Issue
Block a user