well you also need to use the "-static" parameter...
here's the work Makefile
PHP Code:
CPP = g++
TARGET = podbot_mm
BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp
OPTFLAGS = -DNDEBUG
CPPFLAGS = ${BASEFLAGS} ${OPTFLAGS} -O2 -w -I"../metamod-1.17/metamod" -I"../hlsdk/multiplayer/common" -I"../hlsdk/multiplayer/dlls" -I"../hlsdk/multiplayer/engine" -I"../hlsdk/multiplayer/pm_shared"
OBJ = bot.o \
bot_chat.o \
bot_client.o \
bot_combat.o \
bot_globals.o \
bot_sounds.o \
compress.o \
dll.o \
engine.o \
util.o \
waypoint.o
${TARGET}_i386.so: ${OBJ}
${CPP} -fPIC -shared -static -o $@ ${OBJ} -ldl -lm
clean:
rm -f *.o
rm -f *.map
%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@
%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@
looks like it's still far from being perfect