summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/ogAdmBoot
diff options
context:
space:
mode:
Diffstat (limited to 'admin/Sources/Services/ogAdmBoot')
-rw-r--r--admin/Sources/Services/ogAdmBoot/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmBoot/Makefile b/admin/Sources/Services/ogAdmBoot/Makefile
index 79b30104..a8d9da0e 100644
--- a/admin/Sources/Services/ogAdmBoot/Makefile
+++ b/admin/Sources/Services/ogAdmBoot/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/ogAdmBoot.o