When I try to build a program using static libraries, I get errors -

[dranta:~/tests] dir% gfortran -o print print.f
[dranta:~/tests] dir% gfortran -o print print.f -Wl,-static
/usr/bin/ld: only one of -static or -dynamic can be specified
[dranta:~/tests] dir% gfortran -static -o print print.f
/usr/bin/ld: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
[dranta:~/tests] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin8.5.0
Configured with: ../gcc/configure --prefix=/Users/dir/gfortran
--enable-languages=c,f95
Thread model: posix
gcc version 4.2.0 20060328 (experimental)
[dranta:~/tests] dir%


-- 
           Summary: Cannot build using static libraries
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
  GCC host triplet: powerpc-apple-darwin8.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26920

Reply via email to