From: Thomas Petazzoni Date: Mon, 5 Sep 2016 23:25:39 +0200 Subject: [Buildroot] [PATCH 1/1] package/opencv3: use BR2_TOOLCHAIN_HAS_LIBATOMIC In-Reply-To: References: <20160905210056.24393-1-bernd.kuhls@t-online.de> Message-ID: <20160905232539.14f32fa1@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Mon, 5 Sep 2016 23:20:00 +0200, Samuel Martin wrote: > > +# Uses __atomic_fetch_add_4 > > +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) > > +OPENCV3_CONF_OPTS += -DCMAKE_CXX_FLAGS="-latomic" > > +endif > > Since you add the dependency on BR2_TOOLCHAIN_HAS_ATOMIC in the > Config.in, I wonder whether nested conf. opts. update in a if-block > that will always be true is really necessary... You're confusing BR2_TOOLCHAIN_HAS_ATOMIC with BR2_TOOLCHAIN_HAS_LIBATOMIC. There's a subtle difference :) Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com