aboutsummaryrefslogtreecommitdiff
path: root/package/libatomic_ops/libatomic_ops.mk
blob: 483f11812896250ef2128d6fd450e6800404a91d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
################################################################################
#
# libatomic_ops
#
################################################################################

LIBATOMIC_OPS_VERSION = v7.4.6
LIBATOMIC_OPS_SITE = $(call github,ivmai,libatomic_ops,$(LIBATOMIC_OPS_VERSION))
LIBATOMIC_OPS_AUTORECONF = YES

# From doc/LICENSING.txt: "Our intent is to make it easy to use
# libatomic_ops, in both free and proprietary software.  Hence most
# code that we expect to be linked into a client application is
# covered by an MIT-style license. A few library routines are covered
# by the GNU General Public License. These are put into a separate
# library, libatomic_ops_gpl.a."
LIBATOMIC_OPS_LICENSE = MIT (main library) / GPL-2.0+ (gpl extension)
LIBATOMIC_OPS_LICENSE_FILES = doc/LICENSING.txt COPYING

LIBATOMIC_OPS_INSTALL_STAGING = YES

ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
LIBATOMIC_OPS_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9"
endif

$(eval $(autotools-package))
$(eval $(host-autotools-package))