Browse Source

c++11: fix libbdb build against libc++ in c++11 mode

atomic_init clashes with
0.13
Cory Fields 9 years ago
parent
commit
3968922b96
  1. 3
      depends/packages/bdb.mk

3
depends/packages/bdb.mk

@ -12,7 +12,8 @@ $(package)_config_opts_linux=--with-pic @@ -12,7 +12,8 @@ $(package)_config_opts_linux=--with-pic
endef
define $(package)_preprocess_cmds
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h && \
sed -i.old 's/atomic_init/atomic_init_db/' dbinc/atomic.h mp/mp_region.c mp/mp_mvcc.c mp/mp_fget.c mutex/mut_method.c mutex/mut_tas.c
endef
define $(package)_config_cmds

Loading…
Cancel
Save