[PATCH] Build system command line options

[email protected] (Arthur Bergman)
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <[email protected]>
Currently if you specify cc and ld flag options at the command line it 
totally overrides the ones it finds, this seems non DWIM and non 
optimal. This little patch fixes it.

Reason I need this is am moving in pmcs into classes that #include 
perl.h and thus need patch/to/perl.h in -I

Arthur


--- config/inter/progs.pl       10 Jul 2003 06:54:06 -0000      1.11
+++ config/inter/progs.pl       10 Sep 2003 15:15:47 -0000
@@ -48,9 +48,9 @@
    $cc=$args{cc}           if defined $args{cc};
    $link=$args{link}       if defined $args{link};
    $ld=$args{ld}           if defined $args{ld};
-  $ccflags=$args{ccflags} if defined $args{ccflags};
+  $ccflags.=$args{ccflags} if defined $args{ccflags};
    $linkflags=$args{linkflags} if defined $args{linkflags};
-  $ldflags=$args{ldflags} if defined $args{ldflags};
+  $ldflags.=$args{ldflags} if defined $args{ldflags};
    $libs=$args{libs}       if defined $args{libs};
    $debug='y'              if defined $args{debugging};
    $cc_warn=$args{ccwarn}  if defined $args{ccwarn};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.