summaryrefslogtreecommitdiff
path: root/make/options.mk
blob: 67197de03f47759a736ad37c0ef23f8dc932ab1d (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Options which may be overriden for platforms, etc.
#
# This list of such variables should be kept up to date with AvailableOptions in
# 'make/lib_info.mk'.

# The compiler to use.
CC := gcc

# The compiler flags to use.
CFLAGS := -Wall -Werror

# The list of functions to include in the library.
FUNCTIONS :=

# Whether optimized function implementations should be used.
OPTIMIZED := 1

# Whether function definitions should use hidden visibility. This adds the
# -fvisibility=hidden compiler option and uses .private_extern annotations in
# assembly files.
#
# FIXME: Make this more portable. When that is done, it should probably be the
# default.
VISIBILITY_HIDDEN := 0

# Whether the library is being built for kernel use.
KERNEL_USE := 0

# Whether the library should be built as a shared object.
SHARED_LIBRARY := 0

# Miscellaneous tools.

AR := ar
# FIXME: Remove these pipes once ranlib errors are fixed.
ARFLAGS := cru 2> /dev/null

LDFLAGS :=

RANLIB := ranlib
# FIXME: Remove these pipes once ranlib errors are fixed.
RANLIBFLAGS := 2> /dev/null

STRIP := strip
LIPO := lipo
DSYMUTIL := dsymutil

SHARED_LIBRARY_SUFFIX := so