pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New security/botan pkg



On Fri, Feb 03, 2006 at 06:21:40PM +0100, Geert Hendrickx wrote:
> On Sat, Feb 04, 2006 at 12:27:17AM +0800, Rui-Xiang Guo wrote:
> > BTW, I think use CONFIG_SHELL is the proper method and we don't need to 
> > define
> > do-configure target, just to set -
> > 
> > CONFIGURE_SCRIPT=   configure.pl
> 
> That's what he did initially, but this way it gave a lot of errors.  

Hi, I think they are just warnings. :)
If you want to make it silence, replace the patch-aa with the attachment.

-rxg
$NetBSD$

--- configure.pl.orig   2006-01-01 09:02:28.000000000 +0800
+++ configure.pl
@@ -74,7 +74,6 @@ my %DOCS = (
    'deprecated.txt' => $DOC_DIR,
    'license.txt' => $DOC_DIR,
    'log.txt' => $DOC_DIR,
-   'rngs.txt' => $DOC_DIR,
    'thanks.txt' => $DOC_DIR,
    'todo.txt' => $DOC_DIR
    );
@@ -1696,12 +1695,6 @@ sub guess_triple
         my @CCS = ('gcc', 'icc', 'compaq', 'kai'); # Skips several, oh well...
 
         # First try the CC enviornmental variable, if it's set
-        if(defined($ENV{CC}))
-        {
-            my @new_CCS = ($ENV{CC});
-            foreach my $cc (@CCS) { push @new_CCS, $cc; }
-            @CCS = @new_CCS;
-        }
 
         my $cc = '';
         foreach (@CCS)
@@ -2040,8 +2033,12 @@ sub print_unix_makefile {
    my $link_to = "-lm";
    foreach my $lib (@{ $lib_list })
    {
+       if ($lib =~ m/pthread/) {
+           $link_to .= " -" . $lib;
+       } else {
        $link_to .= " -l" . $lib;
    }
+   }
 
    ##################################################
    # Generate a few variables                       #


Home | Main Index | Thread Index | Old Index