This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
rename s/\bSI_/PERLSI_/ to avoid collisions with sysinfo headers
[perl5.git] / cflags.SH
index 9dc5c90..8a1ba82 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -21,6 +21,7 @@ echo "Extracting cflags (with variable substitutions)"
 : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
 : Protect any dollar signs and backticks that you do not want interpreted
 : by putting a backslash in front.  You may delete these comments.
+rm -f cflags
 $spitshell >cflags <<!GROK!THIS!
 $startsh
 !GROK!THIS!
@@ -87,6 +88,7 @@ for file do
     POSIX) ;;
     SDBM_File) ;;
     av) ;;
+    byterun) ;;
     deb) ;;
     dl) ;;
     doio) ;;
@@ -122,8 +124,9 @@ for file do
                optimize="$optdebug"
        fi
 
-    echo "$cc -c $ccflags $optimize $perltype $large $split"
-    eval "$also "'"$cc -c $ccflags $optimize $perltype $large $split"'
+    : Can we perhaps use $ansi2knr here
+    echo "$cc -c -DPERL_CORE $ccflags $optimize $perltype $large $split"
+    eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $perltype $large $split"'
 
     . $TOP/config.sh