RFE: archk detect non-PIC code

Bug #1326495 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
In Progress
Wishlist
Unassigned
Mandriva
In Progress
Wishlist

Bug Description

On AMD64, builds of shared objects against archives will fail unless the
archives are built properly. On other platforms it works, although it's
considered a bad idea. archk should be able to detect this situation and report
on it:

gcc -o ./libfontconfig.so.1.0.4~ -shared -Wl,-soname,libfontconfig.so.1
fcatomic.o fcblanks.o fccache.o fccfg.o fccharset.o fcdbg.o fcdefault.o fcdir.o
fcfreetype.o fcfs.o fcinit.o fclang.o fclist.o fcmatch.o fcmatrix.o fcname.o
fcpat.o fcstr.o fcxml.o -L../../exports/lib -lfreetype -lexpat -lc
/usr/bin/ld: ../../exports/lib/libfreetype.a(ftbase.o): relocation R_X86_64_32S
can not be used when making a shared object; recompile with -fPIC

Jeff Johnson (n3npq)
Changed in lsb:
status: New → In Progress
importance: Undecided → Critical
milestone: none → 5.0
Changed in mandriva:
importance: Unknown → Wishlist
status: Unknown → In Progress
Jeff Johnson (n3npq)
Changed in lsb:
importance: Critical → Medium
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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