|
From: | Vikram Ambrose |
Subject: | Re: Separate CPPFLAGS for static and shared libs |
Date: | Tue, 22 Jul 2008 09:22:09 -0400 |
User-agent: | Thunderbird 2.0.0.14 (X11/20080501) |
Ralf Wildenhues wrote:
Hello Vikram, * Vikram Ambrose wrote on Mon, Jul 21, 2008 at 11:36:25PM CEST:Just ran into a problem, with our old solution, both the .a and the .so need to have -fPIC. Now how do i get separate CPPFLAGS to them when using libtool?You should be looking into convenience archives, or, if they don't help you, explain why you need -fPIC in the static library. Cheers, Ralf
The compiler give an error when using the static library,/bin/ld: /sysroot/usr/lib64/libsepol.a(libsepol_la-services.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
Vikram
[Prev in Thread] | Current Thread | [Next in Thread] |