File apertium-deps.diff of Package apertium
"-l" MUST NOT be used to link to just-built libraries, because "-l" does not add any dependencies into make's dependency tree. As such, make may attempt to build the program before libapertium3.la exists, which is an error and can lead to an error, or worse, odd silent failures: the -lapertium3 may match a copy in a directory other than the build directory (think /usr/lib), and that is bad. libtool: link: g++ -Wall -ansi -O3 -mtune=nocona -fomit-frame-pointer -funroll-loops -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -o apertium-tagger apertium_tagger.o -lapertium3 -lpcreposix -lpcrecpp -llttoolbox3 /usr/lib64/libxml2.so -ldl -lz -llzma -lm -lpcre -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 ld: cannot find -lapertium3 --- apertium/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: apertium-3.9.12/apertium/Makefile.am =================================================================== --- apertium-3.9.12.orig/apertium/Makefile.am +++ apertium-3.9.12/apertium/Makefile.am @@ -227,7 +227,7 @@ apertium_DATA = deformat.xsl reformat.xs tagger.dtd interchunk.dtd format.dtd transfer.dtd postchunk.dtd modes.dtd crx.dtd \ tagger.rnc interchunk.rnc format.rnc transfer.rnc postchunk.rnc modes.rnc -LDADD = -lapertium $(lib_LTLIBRARIES) +LDADD = libapertium.la $(lib_LTLIBRARIES) apertium_cleanstream_SOURCES = apertium_cleanstream.cc apertium_pretransfer_SOURCES = apertium_pretransfer.cc