--as-needed removes Irrlicht linkage from libCEGUIIrrlichtRenderer-0.so

Create issue
Issue #991 open
Former user created an issue

Automatic migration. Original reporter: "hasufell"

for info on what --as-needed does, see: http://www.gentoo.org/proj/en/qa/asneeded.xml

The renderer builds fine, but I fear this will cause trouble if someone will use pkg-config --libs CEGUI-0-IRRLICHT.pc, because it does not pull in Irrlicht.

So the question is... is this an "--as-needed" issue or does the pkg-config file just lack "-lIrrlicht"?

Reproducibility: always

Comments (5)

  1. Former user Account Deleted

    Original reporter: hasufell

    emerge --info

    Portage 2.2.0_alpha188 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.15-r3, 3.8.13-gnu-ck1 x86_64)

    System uname: Linux-3.8.13-gnu-ck1-x86_64-Intel-R-Core-TM-_i7-4770_CPU@_3.40GHz-with-gentoo-2.2 KiB Mem: 16459708 total, 3179784 free KiB Swap: 4194300 total, 4191456 free Timestamp of tree: Thu, 11 Jul 2013 13:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-lang/python: 2.5.4-r5, 2.6.8-r1, 2.7.5, 3.1.5-r1, 3.2.5-r1, 3.3.2-r1 dev-util/ccache: 3.1.9 dev-util/cmake: dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.4.7, 4.5.4, 4.6.3, 4.8.1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.15-r3

    CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx2 -O2 -pipe -Wall -g" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="-march=core-avx2 -O2 -pipe -Wall -g" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j8"

  2. Manh Nguyen Tien

    I think this is not a bug, --as-needed removes the lib which is not necessary for linking. libCEGUIIrrlichtRenderer-0.so loads Irrlicht dynamically at runtime, therefore it isn't really needed at compile time.

  3. Lukas Meindl

    @zer0-x what if it was built statically? I actually do not recall if our static settings extends to the renderer plugins.

  4. Log in to comment