https://bugzilla.redhat.com/show_bug.cgi?id=1211362 --- Comment #6 from Antonio Trande <anto.trande@xxxxxxxxx> --- undefined-non-weak-symbol vanish if i set ldflags like you said: LDFLAGS=" -lGL -lGLU" export CFLAGS="%{optflags} -pthread -DNDEBUG" but rpmlint detects unused dependencies $ rpmlint wildmagic5 wildmagic5-devel wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Physics.so.5.13 /lib64/libGL.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Physics.so.5.13 /lib64/libGLU.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Physics.so.5.13 /lib64/libWm5Core.so.5 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Mathematics.so.5.13 /lib64/libGL.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Mathematics.so.5.13 /lib64/libGLU.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Core.so.5.13 /lib64/libGL.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Core.so.5.13 /lib64/libGLU.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Core.so.5.13 /lib64/libm.so.6 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Applications.so.5.13 /lib64/libGL.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Applications.so.5.13 /lib64/libGLU.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Applications.so.5.13 /lib64/libWm5Imagics.so.5 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Applications.so.5.13 /lib64/libWm5Physics.so.5 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Imagics.so.5.13 /lib64/libGL.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Imagics.so.5.13 /lib64/libGLU.so.1 wildmagic5.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libWm5Graphics.so.5.13 /lib64/libGLU.so.1 wildmagic5.x86_64: W: no-documentation wildmagic5-devel.x86_64: W: only-non-binary-in-usr-lib wildmagic5-devel.x86_64: W: no-documentation 2 packages and 0 specfiles checked; 0 errors, 18 warnings. $ rpmlint -I unused-direct-shlib-dependency unused-direct-shlib-dependency: The binary contains unused direct shared library dependencies. This may indicate gratuitously bloated linkage; check that the binary has been linked with the intended shared libraries only. $ ldd /usr/lib64/libWm5Physics.so.5.13 linux-vdso.so.1 => (0x00007fffe4bc3000) libGL.so.1 => /lib64/libGL.so.1 (0x00007fc618208000) libGLU.so.1 => /lib64/libGLU.so.1 (0x00007fc617f97000) libWm5Core.so.5 => /lib64/libWm5Core.so.5 (0x00007fc617d86000) libWm5Mathematics.so.5 => /lib64/libWm5Mathematics.so.5 (0x00007fc61787e000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fc61756f000) libm.so.6 => /lib64/libm.so.6 (0x00007fc617266000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc61704f000) libc.so.6 => /lib64/libc.so.6 (0x00007fc616c92000) libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fc616a67000) libglapi.so.0 => /lib64/libglapi.so.0 (0x00007fc61683d000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fc616618000) libXext.so.6 => /lib64/libXext.so.6 (0x00007fc616405000) libXdamage.so.1 => /lib64/libXdamage.so.1 (0x00007fc616202000) libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007fc615ffc000) libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007fc615df9000) libX11.so.6 => /lib64/libX11.so.6 (0x00007fc615ab6000) libxcb-glx.so.0 => /lib64/libxcb-glx.so.0 (0x00007fc61589d000) libxcb-dri2.so.0 => /lib64/libxcb-dri2.so.0 (0x00007fc615697000) libxcb-dri3.so.0 => /lib64/libxcb-dri3.so.0 (0x00007fc615494000) libxcb-present.so.0 => /lib64/libxcb-present.so.0 (0x00007fc615291000) libxcb-randr.so.0 => /lib64/libxcb-randr.so.0 (0x00007fc615082000) libxcb-xfixes.so.0 => /lib64/libxcb-xfixes.so.0 (0x00007fc614e7a000) libxcb-render.so.0 => /lib64/libxcb-render.so.0 (0x00007fc614c70000) libxcb-shape.so.0 => /lib64/libxcb-shape.so.0 (0x00007fc614a6b000) libxcb-sync.so.1 => /lib64/libxcb-sync.so.1 (0x00007fc614864000) libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fc614642000) libxshmfence.so.1 => /lib64/libxshmfence.so.1 (0x00007fc61443e000) libXxf86vm.so.1 => /lib64/libXxf86vm.so.1 (0x00007fc614238000) libdrm.so.2 => /lib64/libdrm.so.2 (0x00007fc61402b000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc613e0e000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc613c0a000) /lib64/ld-linux-x86-64.so.2 (0x00007fc618720000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fc61399c000) liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fc613777000) libXau.so.6 => /lib64/libXau.so.6 (0x00007fc613572000) -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list package-review@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/package-review