This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
OS/2 and $^O updates, and first-pass general cleanup
[perl5.git] / cflags.SH
index 4a17475..9dc5c90 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -22,6 +22,7 @@ echo "Extracting cflags (with variable substitutions)"
 : Protect any dollar signs and backticks that you do not want interpreted
 : by putting a backslash in front.  You may delete these comments.
 $spitshell >cflags <<!GROK!THIS!
+$startsh
 !GROK!THIS!
 
 : In the following dollars and backticks do not need the extra backslash.
@@ -63,7 +64,7 @@ case $# in
 0) set *.c; echo "The current C flags are:" ;;
 esac
 
-set `echo "$* " | sed 's/\.[oc] / /g'`
+set `echo "$* " | sed -e 's/\.[oc] / /g' -e 's/\.obj / /g'`
 
 for file do