6a10b3
project: custom config: handle all expat-related bits at config-time.
@@ -231,6 +231,19 @@ cfgdefs_perform_target_tests()
|
|
231
231
|
mb_cfgtest_makevar='LDFLAGS_SQLITE_STATIC'
|
232
232
|
cfgtest_makevar_append '$(LDFLAGS_SQLITE)'
|
233
233
|
|
234
|
+
# expat
|
235
|
+
cfgtest_newline
|
236
|
+
cfgtest_comment 'expat'
|
237
|
+
|
238
|
+
mb_cfgtest_makevar='CFLAGS_EXPAT'
|
239
|
+
cfgtest_makevar_append '-DXML_DEV_URANDOM'
|
240
|
+
|
241
|
+
mb_cfgtest_makevar='LDFLAGS_EXPAT'
|
242
|
+
cfgtest_makevar_append '-lexpat'
|
243
|
+
|
244
|
+
mb_cfgtest_makevar='LDFLAGS_EXPAT_STATIC'
|
245
|
+
cfgtest_makevar_append '$(LDFLAGS_EXPAT)'
|
246
|
+
|
234
247
|
# pretty cfgdefs.mk
|
235
248
|
cfgtest_newline
|
236
249
|
}
|
@@ -1,7 +1,4 @@
|
|
1
1
|
# shared extensions: dependency switches
|
2
|
-
CFLAGS_EXPAT += -DXML_DEV_URANDOM
|
3
|
-
LDFLAGS_EXPAT += -lexpat
|
4
|
-
|
5
2
|
CFLAGS_DBM +=
|
6
3
|
LDFLAGS_DBM += -lgdbm_compat
|
7
4
|
|
@@ -11,6 +8,5 @@ LDFLAGS_TCLTK += $(LDFLAGS_TCLTK_LIBS)
|
|
11
8
|
# static extensions: dependency switch
|
12
9
|
LDFLAGS_PYEXT_STATIC += -lssl -lcrypto -lgdbm -lreadline
|
13
10
|
LDFLAGS_PYEXT_STATIC += -lbz2 -lffi -lintl -llzma -lz
|
14
|
-
LDFLAGS_EXPAT_STATIC += $(LDFLAGS_EXPAT)
|
15
11
|
LDFLAGS_DBM_STATIC += $(LDFLAGS_DBM)
|
16
12
|
LDFLAGS_TCLTK_STATIC += $(LDFLAGS_TCLTK)
|