mirror of https://git.48k.eu/ogserver
#884 do not strip off symbols
Nor use -O3 since this generates code that is harder to debug. Compile binary that can be run inside valgrind for better debugging.master
parent
ef6e3d263c
commit
8d6d833770
4
Makefile
4
Makefile
|
@ -8,8 +8,7 @@ INSTALL_DIR := /opt/opengnsys
|
||||||
|
|
||||||
# Opciones de compilacion
|
# Opciones de compilacion
|
||||||
CFLAGS := $(shell mysql_config --cflags)
|
CFLAGS := $(shell mysql_config --cflags)
|
||||||
CFLAGS += -O0 -g -Wall -I../../Includes # Depuracion
|
CFLAGS += -g -Wall -I../../Includes
|
||||||
#CFLAGS += -O3 -I../../Includes # Optimizacion
|
|
||||||
CPPFLAGS := $(CFLAGS)
|
CPPFLAGS := $(CFLAGS)
|
||||||
|
|
||||||
# Opciones de linkado
|
# Opciones de linkado
|
||||||
|
@ -23,7 +22,6 @@ all: $(PROYECTO)
|
||||||
|
|
||||||
$(PROYECTO): $(OBJS)
|
$(PROYECTO): $(OBJS)
|
||||||
g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO)
|
g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO)
|
||||||
# strip $(PROYECTO) # Optimizacion
|
|
||||||
|
|
||||||
install: $(PROYECTO)
|
install: $(PROYECTO)
|
||||||
cp $(PROYECTO) $(INSTALL_DIR)/sbin
|
cp $(PROYECTO) $(INSTALL_DIR)/sbin
|
||||||
|
|
Loading…
Reference in New Issue