summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/wrapper_macros.GNU
diff options
context:
space:
mode:
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)