summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-18 08:44:52 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-18 14:14:27 -0400
commitea14a82db6693ddbf3ec60c43dba5225e888c876 (patch)
treec6844aeaf85f5160ea74b33e1f2b3253d6086ca9 /cflags.SH
parent6a8c321707dde176ebe36b755a02e0561ba16628 (diff)
downloadperl-ea14a82db6693ddbf3ec60c43dba5225e888c876.tar.gz
Comment tweaking.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH15
1 files changed, 13 insertions, 2 deletions
diff --git a/cflags.SH b/cflags.SH
index 69ad9995a9..3ab5180e8b 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -1,12 +1,23 @@
#!/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
+# to pass to the compiler for compiling the core perl.
+#
+# This does NOT affect the XS compilation (ext, dist, cpan)
+# since that uses %Config values directly.
+#
+# For example, since -Wall adds -Wunused-*, a bare -Wall (without
+# amending that with -Wno-unused-..., or with the PERL_UNUSED_...)
+# would be too much for XS code because there are too many generated
+# but often unused things.
+#
+# 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:
#
+# $myccflags (possibly edited version of $Config{ccflags})
# $warn
# $stdflags
# $extra