diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-31 05:51:10 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-31 06:29:16 -0700 |
commit | b57dddb1a14cf0a7abb1b4cd2f01f3dd6cb84509 (patch) | |
tree | 58f3e7f676e8009235bfaa29786385df85c803d4 /crawl-ref/source/util | |
parent | f3e85be18aeba71bb43cd2291faffcee188e141d (diff) | |
download | crawl-ref-b57dddb1a14cf0a7abb1b4cd2f01f3dd6cb84509.tar.gz crawl-ref-b57dddb1a14cf0a7abb1b4cd2f01f3dd6cb84509.zip |
version.cc: combine CFLAGS_L and CFLAGS
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-x | crawl-ref/source/util/gen-cflg.pl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/util/gen-cflg.pl b/crawl-ref/source/util/gen-cflg.pl index 2f5e8983e2..d7d0cce39d 100755 --- a/crawl-ref/source/util/gen-cflg.pl +++ b/crawl-ref/source/util/gen-cflg.pl @@ -5,19 +5,15 @@ use warnings; my $outfile = $ARGV[0]; my $cflags = $ARGV[1]; -my $cflags_l = $ARGV[2]; -my $ldflags = $ARGV[3]; +my $ldflags = $ARGV[2]; $cflags =~ s/\"/\\"/g; -$cflags_l =~ s/\"/\\"/g; $ldflags =~ s/\"/\\"/g; while ($cflags =~ s/[ \t]{2,}/ /g) {} -while ($cflags_l =~ s/[ \t]{2,}/ /g) {} while ($ldflags =~ s/[ \t]{2,}/ /g) {} $cflags =~ s/^[ \t]+|[ \t]$//; -$cflags_l =~ s/^[ \t]+|[ \t]$//; $ldflags =~ s/^[ \t]+|[ \t]$//; my $prefix = "CRAWL"; @@ -29,7 +25,6 @@ print OUT <<__eof__; #define __included_${smprefix}_compile_flags_h #define ${prefix}_CFLAGS "${cflags}" -#define ${prefix}_CFLAGS_L "${cflags_l}" #define ${prefix}_LDFLAGS "${ldflags}" #endif |