fltk

Bryn M. Reeves bmr at redhat.com
Wed Dec 19 17:27:14 UTC 2012


On 19/12/12 15:12, Adrian wrote:
> -Wl,-z,relro -lfltk

Which is pretty close to what you get on current Ubuntu:

root at u1210-vm1:~# grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu quantal (12.10)"

root at u1210-vm1:~# dpkg -s libfltk1.1 | head -2
Package: libfltk1.1
Status: install ok installed

root at u1210-vm1:~# fltk-config --ldflags
-L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -lfltk

> should be (built from source)

That might be what you get building from source but it's not what you'd
get on a current Ubuntu system with their flkt packages so it seems this
is not the cause of the problem you're seeing.

On Fedora the following command fails:

g++ -I/usr/include/freetype2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_THREAD_SAFE -D_REENTRANT -pipe -Wall -fexceptions -O2 -ffast-math
-finline-functions -fomit-frame-pointer   -DNDEBUG -g -O2   -o flrig
[...] -Wl,-Bsymbolic-functions -lfltk_images -lfltk  -ldl  -lrt  -lpthread

While on Ubuntu it works (run in a similarly prep'ed source tree);
something appears to be "magically" adding -lX11 during the link step on
Ubuntu but it doesn't appear to have anything to do with the output
produced by fltk-config (which is identical in terms of library link
requests).

Regards,
Bryn.



More information about the devel mailing list