From 5b208eb9f56431d173e97adfd50f46441bb89a7d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 24 Aug 2005 02:36:05 +0000 Subject: [PATCH] gcc-3 compat --- dlls/nvault/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/nvault/Makefile b/dlls/nvault/Makefile index 9faa39d5..cf5b1a61 100755 --- a/dlls/nvault/Makefile +++ b/dlls/nvault/Makefile @@ -6,7 +6,7 @@ MM_ROOT = ../../metamod/metamod ### EDIT BELOW FOR OTHER PROJECTS ### -OPT_FLAGS = -O3 -fno-rtti -funroll-loops -s -pipe +OPT_FLAGS = -O3 -funroll-loops -s -pipe DEBUG_FLAGS = -g -ggdb3 CPP = gcc NAME = nvault_amxx @@ -26,7 +26,7 @@ else CFLAGS = $(OPT_FLAGS) endif -CFLAGS += -DNDEBUG -fPIC -Wno-deprecated -fexceptions -DHAVE_STDINT_H +CFLAGS += -DNDEBUG -fPIC -Wno-deprecated -fexceptions -DHAVE_STDINT_H -fno-rtti -static-libgcc ifeq "$(AMD64)" "true" BINARY = $(NAME)_amd64.so @@ -35,6 +35,7 @@ else BINARY = $(NAME)_i386.so CFLAGS += -DPAWN_CELL_SIZE=32 -DJIT -DASM32 OPT_FLAGS += -march=i686 + LINK += /lib/libgcc_eh.a /lib/libstdc++.a endif OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o)