Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sandbox:master commit in: /
Date: Sun, 13 Jan 2019 11:39:12
Message-Id: 1547379531.0866b74c29402d3df89b698e760713ce49c41eb9.mgorny@gentoo
1 commit: 0866b74c29402d3df89b698e760713ce49c41eb9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 13 11:21:43 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 13 11:38:51 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=0866b74c
7
8 Remove pointless .pch support
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 Makefile.am | 38 +++-----------------------------------
13 configure.ac | 9 ---------
14 2 files changed, 3 insertions(+), 44 deletions(-)
15
16 diff --git a/Makefile.am b/Makefile.am
17 index eb54f42..c730dba 100644
18 --- a/Makefile.am
19 +++ b/Makefile.am
20 @@ -13,44 +13,12 @@ SUBDIRS = \
21
22 noinst_LTLIBRARIES =
23
24 -SANDBOX_PCH = headers.h.gch libsandbox/headers.h.gch libsbutil/headers.h.gch
25 -nodist_libpch_la_SOURCES = $(SANDBOX_PCH)
26 -GCH_CP = ( \
27 - src=`dirname $@`/.libs/`basename $@`.o; \
28 - test -e "$$src" || src=$@.o; \
29 - cp $$src $@ \
30 - )
31 -# This is built as PIC
32 -$(builddir)/libsbutil/headers.h.gch: headers.h
33 - $(AM_V_GEN)$(LTCOMPILE) -c -o $@.o $< && $(GCH_CP)
34 -# This is built as PIC + exceptions
35 -$(builddir)/libsandbox/headers.h.gch: headers.h
36 - $(AM_V_GEN)$(LTCOMPILE) -c -o $@.o $< $(CFLAG_EXCEPTIONS) && $(GCH_CP)
37 -# This is built w/out PIC
38 -$(builddir)/headers.h.gch: headers.h
39 - $(AM_V_GEN)$(COMPILE) -c -o $@.o $< && $(GCH_CP)
40 -
41 -if SB_BUILD_PCH
42 -BUILT_SOURCES = $(SANDBOX_PCH)
43 -noinst_LTLIBRARIES += libpch.la
44 -
45 -LIBSBUTIL_PCH = libsbutil/headers.h.gch
46 -LIBSANDBOX_PCH = libsandbox/headers.h.gch
47 -TOP_PCH = headers.h.gch
48 -
49 -# Make sure we build the subdirs before the top so they don't
50 -# try to use the top level headers.h.pch.
51 -$(TOP_PCH): $(LIBSBUTIL_PCH) $(LIBSANDBOX_PCH)
52 -endif
53 -
54 -libsbutil: $(LIBSBUTIL_PCH)
55 -libsandbox: libsbutil $(LIBSANDBOX_PCH)
56 -src: libsbutil $(TOP_PCH)
57 -tests: src $(TOP_PCH)
58 +libsandbox: libsbutil
59 +src: libsbutil
60 +tests: src
61
62 EXTRA_DIST = headers.h localdecls.h ChangeLog.0
63
64 -CLEANFILES = $(SANDBOX_PCH)
65 DISTCLEANFILES = $(CLEANFILES)
66
67 ChangeLog:
68
69 diff --git a/configure.ac b/configure.ac
70 index d4886b3..191d096 100644
71 --- a/configure.ac
72 +++ b/configure.ac
73 @@ -38,14 +38,6 @@ LT_INIT([disable-static])
74
75 AC_PREFIX_DEFAULT([/usr])
76
77 -dnl allow pch to be controlled
78 -AC_MSG_CHECKING([whether to use pre-compiled sandbox headers])
79 -AC_ARG_ENABLE([pch],
80 - [AS_HELP_STRING([--disable-pch],[Disable pre-compiled headers])],
81 - [],[enable_pch="yes"])
82 -AM_CONDITIONAL([SB_BUILD_PCH], test "$enable_pch" = "yes")
83 -AC_MSG_RESULT($enable_pch)
84 -
85 dnl multiple personality support (x86 & x86_64: multilib)
86 AC_MSG_CHECKING([for multiple personalities])
87 AC_ARG_ENABLE([schizo],
88 @@ -425,7 +417,6 @@ AC_SUBST([CFLAG_EXCEPTIONS])
89 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
90 AX_CFLAGS_WARN_ALL
91 AC_DEFUN([SB_CHECK_CFLAG],[AX_CHECK_COMPILE_FLAG([$1],[CFLAGS="$CFLAGS $1"])])
92 -SB_CHECK_CFLAG([-Winvalid-pch])
93 SB_CHECK_CFLAG([-fdata-sections])
94 SB_CHECK_CFLAG([-ffunction-sections])
95 dnl We have our own wrapped memory functions.