summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/ogAdmAgent
diff options
context:
space:
mode:
Diffstat (limited to 'admin/Sources/Services/ogAdmAgent')
-rw-r--r--admin/Sources/Services/ogAdmAgent/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmAgent/Makefile b/admin/Sources/Services/ogAdmAgent/Makefile
index 3b483e85..6a7a180a 100644
--- a/admin/Sources/Services/ogAdmAgent/Makefile
+++ b/admin/Sources/Services/ogAdmAgent/Makefile
@@ -8,11 +8,16 @@ INSTALL_DIR := /opt/opengnsys
# Opciones de compilacion
#CFLAGS := -O0 -g -Wall -I../../Includes # Depuracion
-CFLAGS := -O3 -Wall -I../../Includes # Optimizacion
+CFLAGS := -O3 -Wall -I../../Includes # Depuracion
CPPFLAGS := $(CFLAGS)
# Opciones de linkado
-LDFLAGS := -L/usr/lib -L/usr/lib/mysql -lpthread -lmysqlclient
+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
# Ficheros objetos
OBJS := ../../Includes/Database.o sources/ogAdmAgent.o