summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-11 23:13:07 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-11 23:13:07 (GMT)
commit6fe01d4ba0a7f5bc4ccc7324a51431243f7cc68e (patch)
tree29aed9c0a9c8bd45ddbee19b86bdbbc6faf60d64 /Modules
parent9b38a145e2ee72dc3ff3300a3c13e358fee1495d (diff)
downloadcpython-6fe01d4ba0a7f5bc4ccc7324a51431243f7cc68e.zip
cpython-6fe01d4ba0a7f5bc4ccc7324a51431243f7cc68e.tar.gz
cpython-6fe01d4ba0a7f5bc4ccc7324a51431243f7cc68e.tar.bz2
Added Setup.local feature; make shared libs readonly
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Makefile.pre.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index 393e076..ec80f89 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -66,7 +66,8 @@ INSTALL_PROGRAM=${INSTALL} -m 755
INSTALL_DATA= ${INSTALL} -m 644
# Shared libraries must be installed with executable mode on some systems;
# rather than figuring out exactly which, we always give them executable mode.
-INSTALL_SHARED= ${INSTALL} -m 755
+# Also, making them read-only seems to be a good idea...
+INSTALL_SHARED= ${INSTALL} -m 555
# === Variables that are customizable by hand or by inclusion in Setup ===
@@ -137,12 +138,15 @@ getpath.o: getpath.c Makefile
-DEXEC_PREFIX='"$(exec_prefix)"' \
$(srcdir)/getpath.c
-config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
- $(SHELL) $(MAKESETUP) Setup
+config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup Setup.local
+ $(SHELL) $(MAKESETUP) Setup Setup.local
Setup:
cp $(srcdir)/Setup.in Setup
+Setup.local:
+ echo "# Edit this file for local setup changes" >Setup.local
+
Makefile.pre: Makefile.pre.in ../config.status
(cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
$(SHELL) config.status)