Unconditional build/installation of static .la files
Coacher opened this issue · comments
Hello.
I pass --disable-static
to configure script and it says:
=================================================================
Features:
libenca will be built as: shared
GNU recode library interface: no
UNIX98 iconv interface: yes
External converters: yes (piconv)
Language preferences from locale: yes
Language aliases decryption: /usr/share/locale/locale.alias
Target charset from locale: yes
ENCAOPT environment variable: yes
=================================================================
However .la files are still built, which is more or less fine, and installed, which is outright wrong.
List of library files installed by make install
:
$ ls -lAR usr/lib64/
usr/lib64/:
total 216
drwxr-xr-x 2 coacher coacher 4096 Sep 15 19:47 pkgconfig/
-rw-r--r-- 1 coacher coacher 907 Sep 15 19:47 libenca.la
lrwxrwxrwx 1 coacher coacher 16 Sep 15 19:47 libenca.so -> libenca.so.0.5.1*
lrwxrwxrwx 1 coacher coacher 16 Sep 15 19:47 libenca.so.0 -> libenca.so.0.5.1*
-rwxr-xr-x 1 coacher coacher 212664 Sep 15 19:47 libenca.so.0.5.1*
usr/lib64/pkgconfig:
total 4
-rw-r--r-- 1 coacher coacher 291 Sep 15 19:47 enca.pc
Please fix --disable-static
configure flag.
In the end I'm not sure enca it the place to address this. According to StackOverflow question there are platforms where .la is needed, so I think it should stay as is. If you don't want to have .la in your case, just remove it (as Debian is doing that) or fix libtool to not install it in your case.
PS: Pretty much same positon is there from automake maintainers.