[arch-general] Staic libraries

Damjan Georgievski gdamjan at gmail.com
Sun Jan 25 19:25:15 EST 2009


Since bugs on http://bugs.archlinux.org/ are too eagerly closed I'll
have to ask here.
I'm trying to build the latest "tuxonice-userui" since it's required
by tuxonice-rc8.

The compile of tuxoniceui_fbsplash fails with
"/usr/bin/ld: cannot find -lfreetype"

The last command (the one that fails) is:
cc  -static userui_core.o fbsplash/userui_fbsplash.o -o
tuxoniceui_fbsplash -lmng -lpng -ljpeg -lz -lfreetype -llcms -lm

Now, there are /usr/lib/libmng.a /usr/lib/libpng.a /usr/lib/libjpeg.a
/usr/lib/libz.a /usr/lib/liblcms.a /usr/lib/libm.a files on my
ArchLinux but there's no /usr/lib/libfreetype.a static library.

In http://bugs.archlinux.org/task/11016 JGC claims:
"Static libraries aren't needed to build static binaries. The
makefiles contain hardcoded references to the .a files, which is
wrong."

Now, it's not true that the userui Makefile has a hardcoded reference
to the .a file. And I don't see how to build a static binary either?

Hints?


-- 
damjan


More information about the arch-general mailing list