summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/wrapper_macros.GNU
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2009-06-25 13:28:11 +0000
committerSteve Huston <shuston@riverace.com>2009-06-25 13:28:11 +0000
commit9a2fdebd9f0957d0c8fd4a16396021b3c89716b6 (patch)
tree3a062be02af9aef9cd984585c8db5170f7999cd2 /ACE/include/makeinclude/wrapper_macros.GNU
parent66d50ddb15eb6fa8d09557031d73b3ed90db9415 (diff)
downloadATCD-9a2fdebd9f0957d0c8fd4a16396021b3c89716b6.tar.gz
ChangeLogTag:Thu Jun 25 13:26:13 UTC 2009 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/include/makeinclude/wrapper_macros.GNU')
-rw-r--r--ACE/include/makeinclude/wrapper_macros.GNU10
1 files changed, 10 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/wrapper_macros.GNU b/ACE/include/makeinclude/wrapper_macros.GNU
index b169dc5e2f3..68018aa6af0 100644
--- a/ACE/include/makeinclude/wrapper_macros.GNU
+++ b/ACE/include/makeinclude/wrapper_macros.GNU
@@ -192,6 +192,16 @@
# (link to the appropriate platform-specific config file).
#----------------------------------------------------------------------------
+# User-written makefiles that are not MPC-generated often use LIB to specify
+# what to build. This is in contrast to MPC-generated files that use
+# LIB_CHECKED for this purpose. LIB causes conflicts on Windows with gmake
+# and Visual Studio which uses the LIB environment variable as a search path
+# for libraries to link. So, to allow non-MPC makefiles to keep working, set
+# LIB_CHECKED based on LIB if the former is not set and the latter is.
+ifndef COMSPEC
+ LIB_CHECKED ?= $(LIB)
+endif # ! COMPSPEC (and, therefore, assumed !Windows
+
# default to not using an architecture specific output directory
ARCH ?=
ARCH_BIN = $(BIN)