Changed LIBOBJS_HOST to LIBRARY_LD_OBJS.
This commit is contained in:
@@ -186,11 +186,11 @@ DLL_DEF_FLAG = $(subst /,\\,$(wildcard ../$(addsuffix .def,$(LIBRARY))))
|
||||
#
|
||||
# If we compile a .c, .cc into an $(OBJ),
|
||||
# we test if this object is part of the
|
||||
# library objects LIBOBJS_HOST.
|
||||
# library objects LIBRARY_LD_OBJS.
|
||||
# If so, we define _WINDLL so that
|
||||
# e.g. include/shareLib.h works correctly.
|
||||
#
|
||||
OPT_CFLAGS_YES += $(subst $@, /_WINDLL, $(findstring $@,$(LIBOBJS_HOST)))
|
||||
OPT_CFLAGS_YES += $(subst $@, /_WINDLL, $(findstring $@,$(LIBRARY_LD_OBJS)))
|
||||
|
||||
#
|
||||
# A WIN32 dll has three parts:
|
||||
|
||||
@@ -201,11 +201,11 @@ DLL_DEF_FLAG = $(addprefix /def:,$(wildcard ../$(addsuffix .def,$(LIBRARY))))
|
||||
#
|
||||
# If we compile a .c, .cc into an $(OBJ),
|
||||
# we test if this object is part of the
|
||||
# library objects LIBOBJS_HOST.
|
||||
# library objects LIBRARY_LD_OBJS.
|
||||
# If so, we define _WINDLL so that
|
||||
# e.g. include/shareLib.h works correctly.
|
||||
#
|
||||
HOST_OPT_FLAGS += $(subst $@, /_WINDLL, $(findstring $@,$(LIBOBJS_HOST)))
|
||||
HOST_OPT_FLAGS += $(subst $@, /_WINDLL, $(findstring $@,$(LIBRARY_LD_OBJS)))
|
||||
|
||||
#
|
||||
# A WIN32 dll has three parts:
|
||||
@@ -220,7 +220,7 @@ LDCMD = $(CCC) /Fo $@ $^
|
||||
|
||||
# adjust names of libraries to build
|
||||
#
|
||||
# But: if there are no objects LIBOBJS to include
|
||||
# But: if there are no objects LIBRARY_LD_OBJS to include
|
||||
# in this library (may be for e.g. base/src/libCompat
|
||||
# on some archs), don't define (and build) any library!
|
||||
SHRLIB_SUFFIX=.dll
|
||||
|
||||
Reference in New Issue
Block a user