Kaydet (Commit) eefc25d1 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bin USE_MINGW

Its alternative values as used by OOo is irrelevant to us as we don't
intend to support building using MinGW on Windows itself. To us, MinGW
always means cross-compilation. For us it is enough to look at
$(OS)$(COM), and WNTGCC always implies cross-compilation.

(OOo on the other hand attempts to support use of the Cygwin gcc with
the -mno-cygwin option (which is practically considered an obsolete
option), the normal MinGW compiler (but still from Cygwin), but not
cros-compilation.)
üst 933d898b
...@@ -139,9 +139,6 @@ db_CC+=-shared-libgcc ...@@ -139,9 +139,6 @@ db_CC+=-shared-libgcc
db_CXX+=-shared-libgcc db_CXX+=-shared-libgcc
.ENDIF .ENDIF
db_LDFLAGS=-no-undefined -L$(SOLARVER)/$(INPATH)/lib -L$(SOLARVER)/$(INPATH)/bin db_LDFLAGS=-no-undefined -L$(SOLARVER)/$(INPATH)/lib -L$(SOLARVER)/$(INPATH)/bin
.IF "$(USE_MINGW)"=="cygwin"
db_LDFLAGS+=-L$(COMPATH)/lib/mingw -L$(COMPATH)/lib/w32api
.ENDIF
db_LDFLAGS+=-L$(COMPATH)/lib -L$(MINGW_CLIB_DIR) db_LDFLAGS+=-L$(COMPATH)/lib -L$(MINGW_CLIB_DIR)
db_LIBS= db_LIBS=
.IF "$(MINGW_SHARED_GXXLIB)"=="YES" .IF "$(MINGW_SHARED_GXXLIB)"=="YES"
......
...@@ -62,20 +62,11 @@ $(eval $(call gb_Library_add_linked_libs,directx5canvas,\ ...@@ -62,20 +62,11 @@ $(eval $(call gb_Library_add_linked_libs,directx5canvas,\
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_add_linked_libs,directx5canvas,\ $(eval $(call gb_Library_add_linked_libs,directx5canvas,\
user32 \ d3dx \
gdi32 \ gdi32 \
gdiplus \ gdiplus \
ddraw \ ddraw \
)) ))
ifneq ($(USE_MINGW),)
$(eval $(call gb_Library_add_linked_libs,directx5canvas,\
what is $(DIRECTXSDK_LIB)/d3dx.lib now? \
))
else
$(eval $(call gb_Library_add_linked_libs,directx5canvas,\
d3dx \
))
endif
endif endif
$(WORKDIR)/CustomTarget/canvas/source/directx/%.cxx : $(SRCDIR)/canvas/source/directx/%.cxx $(WORKDIR)/CustomTarget/canvas/source/directx/%.cxx : $(SRCDIR)/canvas/source/directx/%.cxx
......
...@@ -67,15 +67,6 @@ $(eval $(call gb_Library_add_linked_libs,directx9canvas,\ ...@@ -67,15 +67,6 @@ $(eval $(call gb_Library_add_linked_libs,directx9canvas,\
gdi32 \ gdi32 \
gdiplus \ gdiplus \
)) ))
ifneq ($(USE_MINGW),)
$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
what is $(DIRECTXSDK_LIB)/d3d9.lib now? \
))
else
$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
d3d9 \
))
endif
endif endif
$(eval $(call gb_Library_add_exception_objects,directx9canvas,\ $(eval $(call gb_Library_add_exception_objects,directx9canvas,\
......
...@@ -2775,11 +2775,6 @@ if test "$_os" = "WINNT"; then ...@@ -2775,11 +2775,6 @@ if test "$_os" = "WINNT"; then
MACHINE_PREFIX=`$CC -dumpmachine` MACHINE_PREFIX=`$CC -dumpmachine`
if echo $MACHINE_PREFIX | grep -q mingw32; then if echo $MACHINE_PREFIX | grep -q mingw32; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
if $CC -dumpspecs | grep -q "mno-cygwin"; then
USE_MINGW="cygwin"
else
USE_MINGW="pure-mingw"
fi
else else
AC_MSG_ERROR([Compiler is not MinGW.]) AC_MSG_ERROR([Compiler is not MinGW.])
fi fi
...@@ -2787,7 +2782,6 @@ if test "$_os" = "WINNT"; then ...@@ -2787,7 +2782,6 @@ if test "$_os" = "WINNT"; then
fi fi
AC_SUBST(COMEX) AC_SUBST(COMEX)
AC_SUBST(MSPDB_PATH) AC_SUBST(MSPDB_PATH)
AC_SUBST(USE_MINGW)
AC_SUBST(SHOWINCLUDES_PREFIX) AC_SUBST(SHOWINCLUDES_PREFIX)
dnl =================================================================== dnl ===================================================================
......
...@@ -34,19 +34,16 @@ TARGET=mingwheaders ...@@ -34,19 +34,16 @@ TARGET=mingwheaders
.IF "$(OS)$(COM)" == "WNTGCC" .IF "$(OS)$(COM)" == "WNTGCC"
.IF "$(CROSS_COMPILING)" != "YES" .IF "$(CROSS_COMPILING)" != "YES"
# Don't do any of this weird and presumably obsolete crack when
# cross-compiling
# Cygwin and MinGW use different directories for the W32API headers # Don't do any of this for now. We support WNTGCC (MinGW) only as
.IF "$(USE_MINGW)" == "cygwin" # cross-compiler. It is dubious whether it would be legal to copy
MINGW_INCLUDE_DIR=$/usr$/include/mingw/ # stuff from the Windows SDK to a cross-compilation build host
MINGW_W32API_INCLUDE_DIR=$/usr$/include/w32api/ # anyway. Some headers and/or import libraries missing in MinGW (or
MINGW_W32API_LIB_DIR=$/usr$/include/w32api/ # mingw-w64 actually) we have copied from Wine in ../wine.
.ELSE
MINGW_INCLUDE_DIR=$(COMPATH)$/include/ MINGW_INCLUDE_DIR=$(COMPATH)$/include/
MINGW_W32API_INCLUDE_DIR=$(COMPATH)$/include/ MINGW_W32API_INCLUDE_DIR=$(COMPATH)$/include/
MINGW_W32API_LIB_DIR=$(COMPATH)$/lib/ MINGW_W32API_LIB_DIR=$(COMPATH)$/lib/
.ENDIF
SYS_INCLUDE_DIR=$(MINGW_INCLUDE_DIR)$/sys/ SYS_INCLUDE_DIR=$(MINGW_INCLUDE_DIR)$/sys/
......
...@@ -179,9 +179,6 @@ CONFIGURE_DIR=source ...@@ -179,9 +179,6 @@ CONFIGURE_DIR=source
.IF "$(MINGW_SHARED_GCCLIB)"=="YES" .IF "$(MINGW_SHARED_GCCLIB)"=="YES"
icu_LDFLAGS+=-shared-libgcc icu_LDFLAGS+=-shared-libgcc
.ENDIF .ENDIF
.IF "$(USE_MINGW)"=="cygwin"
icu_LDFLAGS+=-L$(COMPATH)/lib/mingw -L$(COMPATH)/lib/w32api
.ENDIF
icu_LDFLAGS+=-L$(COMPATH)$/lib icu_LDFLAGS+=-L$(COMPATH)$/lib
icu_LIBS= icu_LIBS=
.IF "$(MINGW_SHARED_GXXLIB)"=="YES" .IF "$(MINGW_SHARED_GXXLIB)"=="YES"
......
...@@ -128,7 +128,6 @@ UNAME=$(shell uname) ...@@ -128,7 +128,6 @@ UNAME=$(shell uname)
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
PATCH_FILES=opensslmingw.patch PATCH_FILES=opensslmingw.patch
.IF "$(USE_MINGW)" == "cygwin"
CONFIGURE_ACTION=$(PERL) configure CONFIGURE_ACTION=$(PERL) configure
CONFIGURE_FLAGS=mingw shared CONFIGURE_FLAGS=mingw shared
INSTALL_ACTION=mv libcrypto.a libcrypto_static.a && mv libcrypto.dll.a libcrypto.a && mv libssl.a libssl_static.a && mv libssl.dll.a libssl.a INSTALL_ACTION=mv libcrypto.a libcrypto_static.a && mv libcrypto.dll.a libcrypto.a && mv libssl.a libssl_static.a && mv libssl.dll.a libssl.a
...@@ -138,16 +137,6 @@ OUT2LIB += libcrypto.* ...@@ -138,16 +137,6 @@ OUT2LIB += libcrypto.*
OUT2LIB += libssl.* OUT2LIB += libssl.*
OUT2BIN = ssleay32.dll OUT2BIN = ssleay32.dll
OUT2BIN += libeay32.dll OUT2BIN += libeay32.dll
.ELSE
CONFIGURE_ACTION=
BUILD_ACTION=cmd /c "ms\mingw32"
OUT2LIB = out/libcrypto_static.*
OUT2LIB += out/libssl_static.*
OUT2LIB += out/libcrypto.*
OUT2LIB += out/libssl.*
OUT2BIN = out/ssleay32.dll
OUT2BIN += out/libeay32.dll
.ENDIF
.ELSE .ELSE
PATCH_FILES=openssl.patch PATCH_FILES=openssl.patch
......
This diff is collapsed.
...@@ -85,10 +85,6 @@ gb_COMPILERDEFS := \ ...@@ -85,10 +85,6 @@ gb_COMPILERDEFS := \
-D_MSC_EXTENSIONS \ -D_MSC_EXTENSIONS \
-D_FORCENAMELESSUNION \ -D_FORCENAMELESSUNION \
ifeq ($(USE_MINGW),cygwin-w64-mingw32)
gb_COMPILERDEFS +=-D_declspec=__declspec
endif
gb_CPUDEFS := \ gb_CPUDEFS := \
-DINTEL \ -DINTEL \
-D_M_IX86 \ -D_M_IX86 \
......
...@@ -106,11 +106,7 @@ LINKC*=$(CC) ...@@ -106,11 +106,7 @@ LINKC*=$(CC)
CYGLIB=$(LIB:s/;/ -L/) CYGLIB=$(LIB:s/;/ -L/)
LINKFLAGS= -Wl,--enable-stdcall-fixup,--enable-runtime-pseudo-reloc-v2 -L$(CYGLIB) LINKFLAGS= -Wl,--enable-stdcall-fixup,--enable-runtime-pseudo-reloc-v2 -L$(CYGLIB)
.IF "$(USE_MINGW)"=="cygwin"
MINGWLIBDIR=$(COMPATH)$/lib$/mingw
.ELSE
MINGWLIBDIR=$(COMPATH)$/lib MINGWLIBDIR=$(COMPATH)$/lib
.ENDIF
MINGWSSTDOBJ= MINGWSSTDOBJ=
MINGWSSTDENDOBJ= MINGWSSTDENDOBJ=
LINKFLAGSAPPGUI=-mwindows LINKFLAGSAPPGUI=-mwindows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment