Cortex wrote:
>
> OK. I search for the command to link statically to a particular lib, but I
> didn't find it. Do you know it ?
You can check the Admin Mod Makefile for more info, but in essecne it
boilds down to this:
STDCPPLIB=/usr/lib/libstdc++-libc6.2-2.a.3
SHLIBLDFLAGS=-shared -nodefaultlibs -lc -lgcc
$(TARGET) : $(OBJS)
$(CXX) $(CFLAGS) -o $@ $(OBJS) $(STDCPPLIB) $(LDFLAGS)
$(SHLIBLDFLAGS)
or
g++ [other flags...] -o library.so [objects...]
/usr/lib/libstdc++-libc6.2-2.a.3 [other libs like -ldl -lm] -shared
-nodefaultlibs -lc -lgcc
Florian
--
Want to produce professional emails and Usenet postings?
http://www.netmeister.org/news/learn2quote.html
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders