#649164 getconf: missing POSIX_V7_THREADS_CFLAGS, POSIX_V7_THREADS_LDFLAGS variables

Package:
libc-bin
Source:
glibc
Description:
GNU C Library: Binaries
Submitter:
Jonathan Nieder
Date:
2011-11-18 12:04:20 UTC
Severity:
wishlist
Tags:
#649164#5
Date:
2011-11-18 12:01:04 UTC
From:
To:
Hi,

POSIX says:

	In addition to the type size programming environments above,
	all implementations support a multi-threaded programming
	environment that is orthogonal to all the programming
	environments listed above. The getconf utility can be used to
	get flags for the threaded environment, as indicated in
	Table 4-6.

and continues by documenting that

	getconf POSIX_V7_THREADS_CFLAGS
	getconf POSIX_V7_THREADS_LDFLAGS

retrieve the compiler flags and linker flags, respectively, for
building multithreaded programs.  glibc getconf does not seem to
support this.

Certainly not urgent, but thought I should report it before I forget.

Sincerely,
Jonathan

(Side note: on amd64, "getconf -v POSIX_V7_LP64_OFF64 POSIX2_VERSION"
works but "getconf -v POSIX_V7_ILP32_OFF32 POSIX2_VERSION" produces
"getconf: Couldn't execute /usr/lib/getconf/POSIX_V7_ILP32_OFF32: No
such file or directory".  So something seems awry, though I care even
less about it.  Please let me know if you would like a report about
that.)