lib shared help
Kurt Wall
kwall
Mon Jan 23 06:01:07 PST 2006
On Fri, Jan 20, 2006 at 05:07:13PM -0600, Rick Sivernell took 147 lines to write:
>
>
> I have lib I am trying to make, where do I put -fPIC to build all .o into a share
> lib? It will build a lib*.a just fine.
[large snip]
> $(TARGET_LIB_SHARED): $(OBJECTS)
> $(CXX) -shared -o $@ $(OBJECTS)
$(CXX) -shared -fPIC -o $@ $(OBJECTS)
Kurt
--
"There was a boy called Eustace Clarence Scrubb, and he almost deserved
it."
-- C. S. Lewis, The Chronicles of Narnia
More information about the Linux-users
mailing list