diff options
Diffstat (limited to 'admin/Sources/Services/ogAdmRepo/Makefile')
-rw-r--r-- | admin/Sources/Services/ogAdmRepo/Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/admin/Sources/Services/ogAdmRepo/Makefile b/admin/Sources/Services/ogAdmRepo/Makefile index b7b9a592..7c273680 100644 --- a/admin/Sources/Services/ogAdmRepo/Makefile +++ b/admin/Sources/Services/ogAdmRepo/Makefile @@ -7,17 +7,13 @@ PROYECTO := ogAdmRepo INSTALL_DIR := /opt/opengnsys # Opciones de compilacion -#CFLAGS := -O0 -g -Wall -I../../Includes # Depuracion -CFLAGS := -O3 -Wall -I../../Includes # Depuracion +CFLAGS := $(shell mysql_config --cflags) +#CFLAGS += -O0 -g -Wall -I../../Includes # Depuracion +CFLAGS += -O3 -Wall # Optimizacion CPPFLAGS := $(CFLAGS) # Opciones de linkado -LBIT := $(shell getconf LONG_BIT) -ifeq ($(LBIT), 64) - LDFLAGS := -L/usr/lib64 -L/usr/lib64/mysql -lpthread -lmysqlclient -else - LDFLAGS := -L/usr/lib -L/usr/lib/mysql -lpthread -lmysqlclient -endif +LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lpthread # Ficheros objetos OBJS := ../../Includes/Database.o sources/ogAdmRepo.o |