Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
5cf2d1ac
Commit
5cf2d1ac
authored
Aug 02, 2017
by
Pierre-Olivier Mercier
Committed by
Ondřej Surý
Aug 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link with libatomic on architectures that requires it
parent
abd21e95
Pipeline
#11579
passed with stages
in 15 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
configure.ac
configure.ac
+9
-1
src/Makefile.am
src/Makefile.am
+1
-1
No files found.
configure.ac
View file @
5cf2d1ac
...
...
@@ -504,8 +504,16 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sched.h>]], [[cpuset_t* set = cpuset
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <stdint.h>]],
[[uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);]])],
[AC_DEFINE(HAVE_ATOMIC, 1, [Define to 1 if you have '__atomic' functions.])]
[AC_DEFINE(HAVE_ATOMIC, 1, [Define to 1 if you have '__atomic' functions.])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#include <stdint.h>]],
[[uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);]])],
[atomic_LIBS=""],
[atomic_LIBS="-latomic"]
)],
[atomic_LIBS=""]
)
AC_SUBST([atomic_LIBS])
# Prepare CFLAG_VISIBILITY to be used where needed
gl_VISIBILITY()
...
...
src/Makefile.am
View file @
5cf2d1ac
...
...
@@ -399,7 +399,7 @@ libknotd_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(systemd_CFLAGS) \
$(liburcu_CFLAGS)
-DKNOTD_MOD_STATIC
libknotd_la_LDFLAGS
=
$(AM_LDFLAGS)
-export-symbols-regex
'^knotd_'
libknotd_la_LIBADD
=
libknot.la zscanner/libzscanner.la
$(systemd_LIBS)
\
$(liburcu_LIBS)
$(liburcu_LIBS)
$(atomic_LIBS)
###################
# Knot DNS Daemon #
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment