• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/musl/musl.mk
Gustavo ZacariasGustavo Zacarias committed 330b112f74722 Feb 2016
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# musl
4
#
5
################################################################################
6
​
7
MUSL_VERSION = 1.1.14
8
MUSL_SITE = http://www.musl-libc.org/releases
9
MUSL_LICENSE = MIT
10
MUSL_LICENSE_FILES = COPYRIGHT
11
​
12
# Before musl is configured, we must have the first stage
13
# cross-compiler and the kernel headers
14
MUSL_DEPENDENCIES = host-gcc-initial linux-headers
15
​
16
# musl does not provide a sys/queue.h implementation, so add the
17
# netbsd-queue package that will install a sys/queue.h file in the
18
# staging directory based on the NetBSD implementation.
19
MUSL_DEPENDENCIES += netbsd-queue
20
​
21
# musl is part of the toolchain so disable the toolchain dependency
22
MUSL_ADD_TOOLCHAIN_DEPENDENCY = NO
23
​
24
MUSL_INSTALL_STAGING = YES
25
​
26
define MUSL_CONFIGURE_CMDS
27
    (cd $(@D); \
28
        $(TARGET_CONFIGURE_OPTS) \
29
        CFLAGS="$(filter-out -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) $(MUSL_EXTRA_CFLAGS)" \
30
        CPPFLAGS="$(filter-out -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" \
31
        ./configure \
32
            --target=$(GNU_TARGET_NAME) \
33
            --host=$(GNU_TARGET_NAME) \
34
            --prefix=/usr \
35
            --libdir=/lib \
36
            --disable-gcc-wrapper \
37
            --enable-static \
38
            $(if $(BR2_STATIC_LIBS),--disable-shared,--enable-shared))
39
endef
40
​
41
define MUSL_BUILD_CMDS
42
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
43
endef
44
​
45
define MUSL_INSTALL_STAGING_CMDS
46
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
47
        DESTDIR=$(STAGING_DIR) install-libs install-tools install-headers
48
endef
49
​
50
define MUSL_INSTALL_TARGET_CMDS
51
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
52
        DESTDIR=$(TARGET_DIR) install-libs
53
    $(RM) $(addprefix $(TARGET_DIR)/lib/,crt1.o crtn.o crti.o Scrt1.o)
54
endef
55
​
56
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.