@@ -289,6 +289,136 @@ General Options
289
289
290
290
.. versionadded :: 3.13
291
291
292
+ .. cmdoption :: PKG_CONFIG
293
+
294
+ Path to ``pkg-config `` utility.
295
+
296
+ .. cmdoption :: PKG_CONFIG_LIBDIR
297
+ .. cmdoption :: PKG_CONFIG_PATH
298
+
299
+ ``pkg-config `` options.
300
+
301
+
302
+ C compiler options
303
+ ------------------
304
+
305
+ .. cmdoption :: CC
306
+
307
+ C compiler command.
308
+
309
+ .. cmdoption :: CFLAGS
310
+
311
+ C compiler flags.
312
+
313
+ .. cmdoption :: CPP
314
+
315
+ C preprocessor command.
316
+
317
+ .. cmdoption :: CPPFLAGS
318
+
319
+ C preprocessor flags, e.g. ``-I<include dir> ``.
320
+
321
+
322
+ Linker options
323
+ --------------
324
+
325
+ .. cmdoption :: LDFLAGS
326
+
327
+ Linker flags, e.g. :samp: `-L{ library_directory } `.
328
+
329
+ .. cmdoption :: LIBS
330
+
331
+ Libraries to pass to the linker, e.g. :samp: `-l{ library } `.
332
+
333
+ .. cmdoption :: MACHDEP
334
+
335
+ Name for machine-dependent library files.
336
+
337
+
338
+ Options for third-party dependencies
339
+ ------------------------------------
340
+
341
+ .. versionadded :: 3.11
342
+
343
+ .. cmdoption :: BZIP2_CFLAGS
344
+ .. cmdoption :: BZIP2_LIBS
345
+
346
+ C compiler and linker flags to link Python to ``libbz2 ``, used by :mod: `bz2 `
347
+ module, overriding ``pkg-config ``.
348
+
349
+ .. cmdoption :: CURSES_CFLAGS
350
+ .. cmdoption :: CURSES_LIBS
351
+
352
+ C compiler and linker flags for ``libncurses `` or ``libncursesw ``, used by
353
+ :mod: `curses ` module, overriding ``pkg-config ``.
354
+
355
+ .. cmdoption :: GDBM_CFLAGS
356
+ .. cmdoption :: GDBM_LIBS
357
+
358
+ C compiler and linker flags for ``gdbm ``.
359
+
360
+ .. cmdoption :: LIBB2_CFLAGS
361
+ .. cmdoption :: LIBB2_LIBS
362
+
363
+ C compiler and linker flags for ``libb2 `` (:ref: `BLAKE2 <hashlib-blake2 >`),
364
+ used by :mod: `hashlib ` module, overriding ``pkg-config ``.
365
+
366
+ .. cmdoption :: LIBEDIT_CFLAGS
367
+ .. cmdoption :: LIBEDIT_LIBS
368
+
369
+ C compiler and linker flags for ``libedit ``, used by :mod: `readline ` module,
370
+ overriding ``pkg-config ``.
371
+
372
+ .. cmdoption :: LIBFFI_CFLAGS
373
+ .. cmdoption :: LIBFFI_LIBS
374
+
375
+ C compiler and linker flags for ``libffi ``, used by :mod: `ctypes ` module,
376
+ overriding ``pkg-config ``.
377
+
378
+ .. cmdoption :: LIBLZMA_CFLAGS
379
+ .. cmdoption :: LIBLZMA_LIBS
380
+
381
+ C compiler and linker flags for ``liblzma ``, used by :mod: `lzma ` module,
382
+ overriding ``pkg-config ``.
383
+
384
+ .. cmdoption :: LIBREADLINE_CFLAGS
385
+ .. cmdoption :: LIBREADLINE_LIBS
386
+
387
+ C compiler and linker flags for ``libreadline ``, used by :mod: `readline `
388
+ module, overriding ``pkg-config ``.
389
+
390
+ .. cmdoption :: LIBSQLITE3_CFLAGS
391
+ .. cmdoption :: LIBSQLITE3_LIBS
392
+
393
+ C compiler and linker flags for ``libsqlite3 ``, used by :mod: `sqlite3 `
394
+ module, overriding ``pkg-config ``.
395
+
396
+ .. cmdoption :: LIBUUID_CFLAGS
397
+ .. cmdoption :: LIBUUID_LIBS
398
+
399
+ C compiler and linker flags for ``liuuid ``, used by :mod: `uuid ` module,
400
+ overriding ``pkg-config ``.
401
+
402
+ .. cmdoption :: PANEL_CFLAGS
403
+ .. cmdoption :: PANEL_LIBS
404
+
405
+ C compiler and Linker flags for PANEL, overriding ``pkg-config ``.
406
+
407
+ C compiler and linker flags for ``libpanel `` or ``libpanelw ``, used by
408
+ :mod: `curses.panel ` module, overriding ``pkg-config ``.
409
+
410
+ .. cmdoption :: TCLTK_CFLAGS
411
+ .. cmdoption :: TCLTK_LIBS
412
+
413
+ C compiler and linker flags for TCLTK, overriding ``pkg-config ``.
414
+
415
+ .. cmdoption :: ZLIB_CFLAGS
416
+ .. cmdoption :: ZLIB_LIBS
417
+
418
+ C compiler and linker flags for ``libzlib ``, used by :mod: `gzip ` module,
419
+ overriding ``pkg-config ``.
420
+
421
+
292
422
WebAssembly Options
293
423
-------------------
294
424
@@ -428,6 +558,19 @@ also be used to improve performance.
428
558
429
559
.. versionadded :: 3.12
430
560
561
+ .. cmdoption :: BOLT_APPLY_FLAGS
562
+
563
+ Arguments to ``llvm-bolt `` when creating a `BOLT optimized binary
564
+ <https://github.com/facebookarchive/BOLT> `_.
565
+
566
+ .. versionadded :: 3.12
567
+
568
+ .. cmdoption :: BOLT_INSTRUMENT_FLAGS
569
+
570
+ Arguments to ``llvm-bolt `` when instrumenting binaries.
571
+
572
+ .. versionadded :: 3.12
573
+
431
574
.. cmdoption :: --with-computed-gotos
432
575
433
576
Enable computed gotos in evaluation loop (enabled by default on supported
@@ -775,6 +918,12 @@ the version of the cross compiled host Python.
775
918
ac_cv_file__dev_ptmx=yes
776
919
ac_cv_file__dev_ptc=no
777
920
921
+ .. cmdoption :: HOSTRUNNER
922
+
923
+ Program to run CPython for the host platform for cross-compilation.
924
+
925
+ .. versionadded :: 3.11
926
+
778
927
779
928
Cross compiling example::
780
929
0 commit comments