Since you're building a shared library, you should link the shared
library, not the static one - that one is for static linking, and hence,
like most static libraries, not build with -fPIC

** Changed in: slang2 (Ubuntu)
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to slang2 in Ubuntu.
https://bugs.launchpad.net/bugs/1221154

Title:
  Please build with -fPIC

Status in slang2 package in Ubuntu:
  Opinion

Bug description:
  Impossible to link against static.

  cc -shared -fpic -lslang -o ../priv/eslang_drv.so slang_drv.o 
/usr/lib/x86_64-linux-gnu/libslang.a
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libslang.a(sltermin.o): relocation 
R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared 
object; recompile with -fPIC
  /usr/lib/x86_64-linux-gnu/libslang.a: could not read symbols: Bad value

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/slang2/+bug/1221154/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to