From 9ab6953c5668b7865370a3e84b83f95684fa7d4a Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 17 Oct 2006 16:51:14 +0000 Subject: [PATCH] added a workaround to BuildUtil to avoid the suffix problems that appeared with scons 0.96.92 git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4775 212acab6-be3b-0410-9dea-997c60f758d6 --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SConstruct b/SConstruct index 6ec8de52..8629b912 100644 --- a/SConstruct +++ b/SConstruct @@ -503,6 +503,11 @@ def BuildUtil(target, source, libs, entry = None, res = None, if file_name != '': target = "%s/%s" % (target, file_name) + # make sure the environment suffix fits + if env['PROGSUFFIX'] not in target: + if '.' in target: + env['PROGSUFFIX'] = target[target.rindex('.'):] + util = env.Program(target, source, LIBS = libs) defenv.Alias(target, util) defenv.Alias('utils', util)