From 2bab3a7fefa52133c296760dfb6f1261b8826339 Mon Sep 17 00:00:00 2001 From: ramon Date: Thu, 30 Jun 2011 10:43:27 +0000 Subject: VersiĆ³n 1.0.2: configurados Makefile para compilar servicios tanto para 32 como 64 bits. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@2116 a21b9725-9963-47de-94b9-378ad31fedc9 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ace1d12..36da5ec 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,12 @@ CFLAGS := -O0 -g -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/ogAdmServer.o -- cgit v1.2.3-18-g5258