From c708af1a1e9e24a80c450a4ac3551589703b398d Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sat, 10 Nov 2007 11:35:00 +0000 Subject: [PATCH 1/1] Separated BUILD_OS and TARGET_OS. darcs-hash:20071110113512-ff715-7b5d80c284a29585d1ef25793c393f35ceae39f0.gz --- snippets/linux | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/snippets/linux b/snippets/linux index c05abd0..d5782c4 100644 --- a/snippets/linux +++ b/snippets/linux @@ -48,16 +48,20 @@ LOADLIBES += $(lib_LOADLIBES:%=-l%) LIB_CPPFLAGS += $(CPPFLAGS) LIB_CFLAGS += $(CFLAGS) -ifeq ($(TARGET_OS),) +ifeq ($(BUILD_OS),) # Check for target ifeq ($(OS),Windows_NT) - TARGET_OS = win32 + BUILD_OS := win32 else - TARGET_OS = $(shell uname | tr '[A-Z]' '[a-z]' ) - #$(warning TARGET_OS=$(TARGET_OS)) + BUILD_OS := $(shell uname | tr '[A-Z]' '[a-z]' ) + #$(warning BUILD_OS=$(BUILD_OS)) endif endif +ifeq ($(TARGET_OS),) + TARGET_OS := BUILD_OS +endif + ifeq ($(TARGET_OS),win32) SOLIB_EXT = dll else -- 2.39.2