static vs dynamic linking.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
	I have been searching the web for several hours now 
and I can't find an answer to this:

When I link my code dynamically it works.
something like this 
$(TARGET) : $(OBJS)
        $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS)

When i add -static it I get a Segmentation Fault.

$(TARGET) : $(OBJS)
        $(CXX) -static o $(TARGET) $(OBJS) $(LDFLAGS)

I am using RH 8.0 with gcc 3.2.
What am I missing ? 
Thanks for your help.






_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux