This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: speclib vs. -lc trouble.


Christopher Faylor wrote:
> So, I reverted the dlltool change and went back to extracting objects
> from libcygwin.a.  But, I no longer try to create a nicely-formed import
> library.  Instead, I rely on the fact that libcygwin.a will be loaded
> eventually and will resolve import-related symbols found in the libc.a,
> libpthread.a, etc.  stubs.
> 
> Does the new version work any better?

  Not at a naive attempt.  Am I doing something wrong?

ar rcv libgmon.a gmon.o mcount.o profil.o
a - gmon.o
a - mcount.o
a - profil.o
/gnu/winsup/src/winsup/cygwin/speclib "nm" "ar" libcygwin.a pthread.o thread.o
libpthread.a
libpthread.a: No such file or directory at
/gnu/winsup/src/winsup/cygwin/speclib line 18
make[3]: *** [libpthread.a] Error 2
make[3]: Leaving directory `/gnu/winsup/obj3/i686-pc-cygwin/winsup/cygwin'
make[2]: *** [cygwin] Error 1
make[2]: Leaving directory `/gnu/winsup/obj3/i686-pc-cygwin/winsup'
make[1]: *** [all-target-winsup] Error 2
make[1]: Leaving directory `/gnu/winsup/obj3'
make: *** [all] Error 2

$ ls -alrt *.a
-rw-r--r-- 1 DKAdmin None 1062130 Apr 10 04:40 cygdll.a
-rw-r--r-- 1 DKAdmin None 1107894 Apr 10 04:40 libcygwin.a
-rw-r--r-- 1 DKAdmin None   17290 Apr 10 04:40 libgmon.a

$ cat -n /gnu/winsup/src/winsup/cygwin/speclib

    15  my $nm = shift;
    16  my $ar = shift;
    17  my $libdll = Cwd::abs_path(shift @ARGV);
    18  my $lib = Cwd::abs_path(pop @ARGV);
    19


    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]