IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:39:02 AM (14 years ago)
Author:
eugene
Message:

add -no-as-needed and -debug-build options to psbuild; add -bootstrap current option; add more verbosity and debug options to pscheckmods; add -clean option to pscheckperl; set LDFLAGS with no-as-needed if we are using Ubuntu with gcc 4.6.3; update Module::Build to version 0.3601 (note: 0.40 requires updates to other modules); update Params:Validate to 0.96 to deal with change to "ref" command; update DBI and DBD:mysql to handle change of xcode namespace; use linker SEARCH_DIR and cpp include information to set hidden search paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r31466 r34087  
    99$optimize = 0;
    1010$profile = 0;
     11$no_as_needed = 0;
     12$debug_build = 0;
    1113$developer = 0;
    1214$magic = 0;
     
    7274    if ($ARGV[0] eq "-profile") {
    7375        $profile = 1;
     76        shift; next;
     77    }
     78    if ($ARGV[0] eq "-no-as-needed") {
     79        $no_as_needed = 1;
     80        shift; next;
     81    }
     82    if ($ARGV[0] eq "-debug-build") {
     83        $debug_build = 1;
    7484        shift; next;
    7585    }
     
    262272    if ($optimize) { $psopts = "$psopts --enable-optimize"; }
    263273    if ($profile)  { $psopts = "$psopts --enable-profile --disable-shared --enable-static"; }
     274    if ($debug_build)  { $psopts = "$psopts --enable-debug-build"; }
     275    if ($no_as_needed)  { $psopts = "$psopts --enable-no-as-needed"; }
    264276    $psopts .= " --disable-version" if $offline;
    265277
     
    383395
    384396sub bootstrap {
    385 
    386     if (@ARGV != 2) { die "USAGE: psbuild -bootstrap (install_dir)\n"; }
     397    if (@ARGV != 2) { die "USAGE: psbuild -bootstrap (install_dir | current)\n"; }
    387398    $psconfdir = $ARGV[1];
     399
     400    if ($psconfdir eq "current") {
     401        $psconfdir = $ENV{'PSCONFDIR'};
     402        if (! $psconfdir) { die "no env variable PSCONFDIR found for psbuild -bootstrap current\n"; }
     403    }
    388404    die "Target directory must be absolute, not relative: $psconfdir\n" unless $psconfdir =~ m|^/|;
    389405
     
    479495    print STDERR "     : -optimize          : set flags for optimized code\n";
    480496    print STDERR "     : -profile           : set flags for profiling\n";
     497    print STDERR "     : -debug-build       : set flags for debug build (Wall, but not Werror; use to find and fix warnings from Wall)\n";
     498    print STDERR "     : -no-as-needed      : add --no-as-needed flag to gcc (to disable default --as-needed flags from Ubuntu, etc)\n";
    481499    print STDERR "     : -only (module)     : only build the specified module\n";
    482500    print STDERR "     : -start (module)    : begin build at specified module\n";
Note: See TracChangeset for help on using the changeset viewer.