From 235a274fa0606fd340cc735e74a0b116d8d6e8b9 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 29 Mar 2014 21:09:35 +0800 Subject: [PATCH] Makefile: move UNAME_S calculation advance --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c14efb52..09bbfa55 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ INCDIR = $(DESTDIR)$(PREFIX)/include LIBDIR = $(DESTDIR)$(PREFIX)/lib # on x86_64, we might have /usr/lib64 directory instead of /usr/lib UNAME_M := $(shell uname -m) +UNAME_S := $(shell uname -s) ifeq ($(UNAME_M), x86_64) ifeq (,$(wildcard $(LIBDIR))) ifneq ($(UNAME_S), Darwin) @@ -44,7 +45,6 @@ endif endif LIBDATADIR = $(LIBDIR) -UNAME_S := $(shell uname -s) ifeq ($(UNAME_S), FreeBSD) LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata endif