[Libreoffice] [PATCH] fix linking the hyphen library
Robert Nagy
robert at openbsd.org
Mon Nov 8 08:42:09 PST 2010
On (2010-11-08 16:29), Caolán McNamara wrote:
> On Sun, 2010-11-07 at 20:42 +0100, Robert Nagy wrote:
> > If the internal hyphen library is used which does not
> > build a shared object, then link to $(SOLARLIBDIR)/libhyphen.a,
> > instead of using -lhyphen on UNX + GCC.
>
> How come, the -L options should place solarlibdir before the system
> ones, so -Lhyphen should link against libhyphen.a first before going
> looking for anything else ?
>
> Have you placed /usr/local/lib or /usr/lib or something into your linker
> flags before SOLARLIBDIR and have another libhyphen in there ?
>
> C.
>
No we don't have a libhyphen on the system, we are using the internal
one, and /usr/local/lib is after SOLARLIBDIR.
Making: libhyphen.so
g++ -Wl,-z,noexecstack -Wl,-z,combreloc -Wl,-zdynsort -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -Wl,-O1 -Wl,--version-script ../../../../unxobsd.pro/misc/component_hyphen.map -L../../../../unxobsd.pro/lib -L../lib -L/home/robert/build.HEAD/build/libreoffice-3.2.99.2/solenv/unxobsd/lib -L/home/robert/build.HEAD/build/libreoffice-3.2.99.2/solver/330/unxobsd.pro/lib -L/home/robert/build.HEAD/build/libreoffice-3.2.99.2/solenv/unxobsd/lib -L/usr/local/lib -L/usr/local/jdk-1.5.0/lib -L/usr/local/jdk-1.5.0/jre/lib/amd64 -L/usr/local/jdk-1.5.0/jre/lib/amd64/server -L/usr/local/jdk-1.5.0/jre/lib/amd64/native_threads -L/usr/X11R6/lib ../../../../unxobsd.pro/slo/hyphen_version.o -o ../../../../unxobsd.pro/lib/libhyphen.so ../../../../unxobsd.pro/slo/hreg.o ../../../../unxobsd.pro/slo/hyphenimp.o ../../../../unxobsd.pro/slo/lingutil.o -luno_cppu -luno_cppuhelpergcc3 -li18nisolang1gcc3 -ltl -lsvl -luno_sal -lutl -llng /home/robert/build.HEAD/build/libreoffice-3.2.99.2/solver/330/unxobsd.pro/lib/libhyphen.a -lulingu -L/usr/local/lib -lhunspell-1.2 -Wl,--as-needed -pthread -lm -Wl,--no-as-needed
rm -f ../../../../unxobsd.pro/lib/check_libhyphen.so
mv ../../../../unxobsd.pro/lib/libhyphen.so ../../../../unxobsd.pro/lib/check_libhyphen.so
/home/robert/build.HEAD/build/libreoffice-3.2.99.2/solenv/bin/checkdll.sh -L../../../../unxobsd.pro/lib -L/home/robert/build.HEAD/build/libreoffice-3.2.99.2/solver/330/unxobsd.pro/lib ../../../../unxobsd.pro/lib/check_libhyphen.so
Checking DLL ../../../../unxobsd.pro/lib/check_libhyphen.so ...: ok
-rwxrwxr-x 1 robert users 134737 Nov 8 17:41 ../../../../unxobsd.pro/lib/libhyphen.so
Making: all_hyphen_lib.dpslo
More information about the LibreOffice
mailing list