Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Don't install bits/libc-lock.h or bits/stdio-lock.h.
Browse files Browse the repository at this point in the history
The bits/libc-lock.h and bits/stdio-lock.h headers are installed, but
not used by any other installed header.

Accordingly, this patch stops these headers from being installed.  A
followup is intended to move these headers out of the bits/ namespace.

Tested for x86_64 (testsuite, and that installed stripped shared
libraries are unchanged by the patch).

	* Makefile (headers): Remove bits/libc-lock.h.
	* libio/Makefile (headers): Remove bits/stdio-lock.h.
  • Loading branch information
jsm28 committed Sep 3, 2015
1 parent acf0cb6 commit 625cd00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2015-09-03 Joseph Myers <[email protected]>

* Makefile (headers): Remove bits/libc-lock.h.
* libio/Makefile (headers): Remove bits/stdio-lock.h.

* libio/libio.h [_IO_MTSAFE_IO]: Remove include of
<bits/stdio-lock.h> and commented-out include of <comthread.h>.
* include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ endif # $(AUTOCONF) = no
subdir_objs subdir_stubs subdir_testclean \
$(addprefix install-, no-libc.a bin lib data headers others)

headers := limits.h values.h features.h gnu-versions.h bits/libc-lock.h \
headers := limits.h values.h features.h gnu-versions.h \
bits/xopen_lim.h gnu/libc-version.h stdc-predef.h

echo-headers: subdir_echo-headers
Expand Down
2 changes: 1 addition & 1 deletion libio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ subdir := libio

include ../Makeconfig

headers := stdio.h libio.h _G_config.h bits/stdio.h bits/stdio-lock.h \
headers := stdio.h libio.h _G_config.h bits/stdio.h \
bits/sys_errlist.h bits/stdio2.h bits/stdio-ldbl.h bits/libio-ldbl.h

routines := \
Expand Down

0 comments on commit 625cd00

Please sign in to comment.