This is the mail archive of the cygwin@cygwin.com 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]

Cygwin 1.5.1 libc.a link problem


While attempting to rebuild procmail against Cygwin 1.5.1, I believe I
have found a problem with libc.a that interferes with building 64-bit
apps.

If one builds the attached test program without -lc, we get the
following:

    $ gcc -o stat stat.c
    $ objdump -p stat.exe | fgrep stat
            6100      510  _stat64

But, if one builds it with -lc, we get the following:

    $ gcc -o stat stat.c -lc
    $ objdump -p stat.exe | fgrep stat
            6130      945  stat

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Attachment: stat.c
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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