I have a library that I originally developed for Linux. I am now in the process of porting it to Cygwin. I have noticed that every library on my Cygwin system is installed like this:
- DLL (
cygfoo.dll
) installed to/usr/bin
mode 755 - Static archive (
libfoo.a
) installed to/usr/lib
mode 644 - Import library (
libfoo.dll.a
) installed to/usr/lib
mode 755
The first two make perfect sense to me. DLLs are executables so they should be mode 755. Static archives are not executables, so they are mode 644. The third one, however, seems odd to me. Import libraries are in fact static archives, not executables (ar -t libfoo.dll.a
lists the contents of the archive). Shouldn't they also be installed mode 644?
Why is it the convention on Cygwin to install import libraries with mode 755?