summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-12-03 16:17:56 +0000
committerDavid Mitchell <davem@iabyn.com>2013-12-25 20:30:46 +0000
commitcb9238a74bae69edc848d03a50c29d86772d1d22 (patch)
tree7cbd9364fb6f920ccc731c403df6114507f770d2 /cflags.SH
parentc5cc3237190cc21fd5e0be13a3bf06942e5303a3 (diff)
downloadperl-cb9238a74bae69edc848d03a50c29d86772d1d22.tar.gz
cflags.SH - add commentary
Add comments to the top of cflags.SH to explain what it does. Also make it output comments at the top of the generated cflags script explaining that its auto-generated.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH17
1 files changed, 17 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index a80eb5d6ea..84e3187f02 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -1,5 +1,17 @@
#!/bin/sh
+# Generate the cflags script, which is used to determine what cflags
+# to pass to the compiler.
+# We create a temporary test c program and repeatedly compile it with
+# various candidate flags, and from the compiler output, determine what
+# flags are supported.
+# From this we initialise the following variables in the cflags script:
+#
+# $warn
+# $stdflags
+# $extra
+# $_exe
+
case $PERL_CONFIG_SH in
'')
if test -f config.sh; then TOP=.;
@@ -210,6 +222,11 @@ rm -f cflags
$spitshell >cflags <<!GROK!THIS!
$startsh
+# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
+
+# This file is generated by cflags.SH
+
+
# Extra warnings, used e.g. for gcc.
warn="$warn"
# Extra standardness.