summaryrefslogtreecommitdiff
path: root/config/x86_64-linux-musl/config.mk
blob: 1226e7e0664915c8ea1c5dedd3b47441fb5e43a4 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# platform
PYTHON_PATH	=
PYTHON_PLATFORM	= linux2


# extensions: built-in
CONFIG_SRCS = \
	Modules/_codecsmodule.c \
	Modules/_sre.c \
	Modules/_weakref.c \
	Modules/errnomodule.c \
	Modules/posixmodule.c \
	Modules/pwdmodule.c \
	Modules/signalmodule.c \
	Modules/symtablemodule.c \
	Modules/threadmodule.c \
	Modules/xxsubtype.c \
	Modules/zipimport.c \


# extensions: dynamic loading
DYNLOAD_SRCS = \
	Python/dynload_shlib.c \


# extensions: desired subsets
include $(PROJECT_DIR)/profiles/pyexts/subsets.mk

PYEXT_SHARED = \
	$(PYEXT_SUBSET_SHARED_ANYOS_CORE) \
	$(PYEXT_SUBSET_SHARED_ANYOS_AUDIO) \
	$(PYEXT_SUBSET_SHARED_LINUX_AUDIO)  \

PYEXT_STATIC = \
	$(PYEXT_SUBSET_STATIC_ANYOS_CORE) \
	$(PYEXT_SUBSET_STATIC_ANYOS_AUDIO) \
	$(PYEXT_SUBSET_STATIC_LINUX_AUDIO)  \


# shared extensions: dependency switches
CFLAGS_NCURSES  = -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses
LDFLAGS_NCURSES = -Wl,--as-needed -lpanelw -lncursesw -Wl,--no-as-needed

CFLAGS_SQLITE   = -I$(SYSROOT)/usr/local/include/sqlite3 -I$(SYSROOT)/usr/include/sqlite3
CFLAGS_SQLITE  += -DMODULE_NAME=\"sqlite3\"
CFLAGS_SQLITE  += -DSQLITE_OMIT_LOAD_EXTENSION
LDFLAGS_SQLITE  = -lsqlite3

CFLAGS_EXPAT    = -DXML_DEV_URANDOM
LDFLAGS_EXPAT   = -lexpat

CFLAGS_DBM      = -DHAVE_NDBM_H
LDFLAGS_DBM     = -lgdbm_compat


# static extensions: dependency switch
LDFLAGS_PYEXT_STATIC	= -lssl -lcrypto -lreadline -lbz2 -lgdbm -lffi -lintl -lz
LDFLAGS_NCURSES_STATIC	= $(LDFLAGS_NCURSES)
LDFLAGS_SQLITE_STATIC	= $(LDFLAGS_SQLITE)
LDFLAGS_EXPAT_STATIC	= $(LDFLAGS_EXPAT)
LDFLAGS_DBM_STATIC	= $(LDFLAGS_DBM)


# strict shared object generation
LDFLAGS_STRICT += -Wl,-no-undefined