diff options
author | Matias Elo <matias.elo@nokia.com> | 2020-02-13 10:39:56 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2020-02-26 14:13:48 +0200 |
commit | 324a2a2c7c1a9d35323483b679eedfebcb310827 (patch) | |
tree | cf832c848caa2bb000895040599dd1c10cabc585 /example | |
parent | 9dc2dcff30a5bf8963b9947343cf79fe63013932 (diff) |
build: check if libatomic is needed for __atomic_compare_exchange_n
Double wide __atomic_compare_exchange_n() is required by ipfragreass
example.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/Makefile.am | 5 | ||||
-rw-r--r-- | example/ipfragreass/Makefile.am | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/example/Makefile.am b/example/Makefile.am index 28362f2c1..26723a9e4 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -3,7 +3,6 @@ SUBDIRS = classifier \ hello \ ipsec \ ipsec_api \ - ipfragreass \ ipsec_offload \ l2fwd_simple \ l3fwd \ @@ -15,3 +14,7 @@ SUBDIRS = classifier \ time \ timer \ traffic_mgmt + +if HAVE_DW_ATOMIC_CMP_EXC +SUBDIRS += ipfragreass +endif diff --git a/example/ipfragreass/Makefile.am b/example/ipfragreass/Makefile.am index b98e066f8..2cd61a39e 100644 --- a/example/ipfragreass/Makefile.am +++ b/example/ipfragreass/Makefile.am @@ -1,6 +1,6 @@ include $(top_srcdir)/example/Makefile.inc -LDADD += $(ATOMIC_LIBS) +LDADD += $(ATOMIC_LIBS) $(ATOMIC_LIBS_OPT) bin_PROGRAMS = odp_ipfragreass |