[PATCH] Explicitly link against libm (Fix for ld no longer implicitly linking DSOs)

Reported by Michel Alexandre Salim on 2010-02-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
window-picker-applet
Undecided
Unassigned
Fedora
Unknown
Unknown

Bug Description

Fedora's Rawhide series use a new linker that no longer implicitly link DSOs, for security reasons:
http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking

Window Picker Applet's task-item.o uses libm's cos, but right now libm is not directly linked during the build process. This no longer works:

/usr/bin/ld: task-item.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'
/usr/bin/ld: note: 'cos@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [window-picker-applet] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/window-picker-applet-0.5.8/src'

See attached patch for fix

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.