bpo-33473: Be slightly better about CFLAGS, LDFLAGS, and related by grimreaper · Pull Request #6771 · python/cpython

@grimreaper grimreaper changed the title [WIP] Be slightly better about CFLAGS, LDFLAGS, and related [WIP] issue33473: Be slightly better about CFLAGS, LDFLAGS, and related

May 12, 2018

@grimreaper grimreaper changed the title [WIP] issue33473: Be slightly better about CFLAGS, LDFLAGS, and related bpo-33473: [WIP] Be slightly better about CFLAGS, LDFLAGS, and related

May 12, 2018

@grimreaper grimreaper changed the title bpo-33473: [WIP] Be slightly better about CFLAGS, LDFLAGS, and related bpo-33473: Be slightly better about CFLAGS, LDFLAGS, and related

May 12, 2018

benjaminp

benjaminp

- "-pthread" is a part of the C compiler and linker flags. It is not
part of the compiler. In particular 'make CC=clang' ought to work
- checking for pthreads support is a link time issue, not run time

Not done in this patch:
- convert from "gcc" to "cc" to more correctly infer the current
compiler
- regenerate generated code such as "configure" or "aclocal.m4"

@grimreaper

@grimreaper