sb126: merged in DEV300_m84
This commit is contained in:
commit
da1320efe1
13 changed files with 96 additions and 20 deletions
|
@ -120,9 +120,9 @@ OUT2INC= \
|
|||
CONFIGURE_DIR=out
|
||||
#relative to CONFIGURE_DIR
|
||||
# TODO needs clean up
|
||||
CFLAGS+=-nostdinc -D_MT
|
||||
db_CC=$(CC)
|
||||
db_CXX=$(CXX)
|
||||
CFLAGS+=-nostdinc
|
||||
db_CC=$(CC) -mthreads
|
||||
db_CXX=$(CXX) -mthreads
|
||||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
db_CC+=-shared-libgcc
|
||||
db_CXX+=-shared-libgcc
|
||||
|
@ -132,7 +132,7 @@ db_LDFLAGS=-no-undefined -L$(SOLARVER)/$(INPATH)/lib -L$(SOLARVER)/$(INPATH)/bin
|
|||
db_LDFLAGS+=-L$(COMPATH)/lib/mingw -L$(COMPATH)/lib/w32api
|
||||
.ENDIF
|
||||
db_LDFLAGS+=-L$(COMPATH)/lib -L$(MINGW_CLIB_DIR)
|
||||
db_LIBS=-lmingwthrd
|
||||
db_LIBS=
|
||||
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
||||
CFLAGS+=-D_GLIBCXX_DLL
|
||||
db_LIBS+=-lstdc++_s
|
||||
|
|
|
@ -70,11 +70,9 @@ cairo_CPPFLAGS+=$(INCLUDE)
|
|||
.IF "$(OS)"=="WNT"
|
||||
# --------- Windows -------------------------------------------------
|
||||
.IF "$(COM)"=="GCC"
|
||||
cairo_CFLAGS+=-D_MT
|
||||
cairo_LDFLAGS+=-no-undefined -L$(ILIB:s/;/ -L/)
|
||||
cairo_CPPFLAGS+=-nostdinc
|
||||
cairo_CC=$(CC)
|
||||
cairo_LIBS+=-lmingwthrd
|
||||
cairo_CC=$(CC) -mthreads
|
||||
|
||||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
cairo_CC+=-shared-libgcc
|
||||
|
|
|
@ -62,7 +62,7 @@ PATCH_FILES=..$/$(TARFILE_NAME).patch
|
|||
.IF "$(COM)"=="GCC"
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure
|
||||
CONFIGURE_FLAGS=--enable-static=yes --enable-shared=no --build=i586-pc-mingw32 --host=i586-pc-mingw32 CFLAGS="$(pixman_CFLAGS) -D_MT" LDFLAGS="$(pixman_LDFLAGS) -no-undefined -L$(ILIB:s/;/ -L/)" LIBS="-lmingwthrd" OBJDUMP="$(WRAPCMD) objdump"
|
||||
CONFIGURE_FLAGS=--enable-static=yes --enable-shared=no --build=i586-pc-mingw32 --host=i586-pc-mingw32 CFLAGS="$(pixman_CFLAGS) -mthreads" LDFLAGS="$(pixman_LDFLAGS) -no-undefined -L$(ILIB:s/;/ -L/)" OBJDUMP="$(WRAPCMD) objdump"
|
||||
BUILD_ACTION=$(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
|
|
|
@ -85,18 +85,18 @@ OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).4
|
|||
|
||||
.IF "$(GUI)"=="WNT"
|
||||
.IF "$(COM)"=="GCC"
|
||||
curl_CC=$(CC)
|
||||
curl_CC=$(CC) -mthreads
|
||||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
curl_CC+=-shared-libgcc
|
||||
.ENDIF
|
||||
curl_LIBS=-lws2_32 -lwinmm -lmingwthrd
|
||||
curl_LIBS=-lws2_32 -lwinmm
|
||||
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
||||
curl_LIBS+=-lstdc++_s
|
||||
.ENDIF
|
||||
CONFIGURE_DIR=.$/
|
||||
#relative to CONFIGURE_DIR
|
||||
CONFIGURE_ACTION=.$/configure
|
||||
CONFIGURE_FLAGS= --without-ssl --enable-ftp --enable-ipv6 --disable-http --disable-gopher --disable-file --disable-ldap --disable-telnet --disable-dict --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(curl_CC)" CPPFLAGS="$(INCLUDE)" OBJDUMP="objdump" CFLAGS=-D_MT LDFLAGS="-L$(ILIB:s/;/ -L/)" LIBS="$(curl_LIBS)"
|
||||
CONFIGURE_FLAGS= --without-ssl --enable-ftp --enable-ipv6 --disable-http --disable-gopher --disable-file --disable-ldap --disable-telnet --disable-dict --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(curl_CC)" CPPFLAGS="$(INCLUDE)" OBJDUMP="objdump" LDFLAGS="-L$(ILIB:s/;/ -L/)" LIBS="$(curl_LIBS)"
|
||||
BUILD_DIR=$(CONFIGURE_DIR)$/lib
|
||||
BUILD_ACTION=make
|
||||
OUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll
|
||||
|
|
|
@ -102,11 +102,11 @@ GR_LIB_PATH=
|
|||
|
||||
.IF "$(OS)"=="WNT"
|
||||
PATCH_FILES+=graphite-2.3.1.patch.mingw
|
||||
EXTRA_GR_CXX_FLAGS=-nostdinc
|
||||
EXTRA_GR_CXX_FLAGS=-mthreads -nostdinc
|
||||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
EXTRA_GR_CXX_FLAGS+=-shared-libgcc
|
||||
.ENDIF
|
||||
EXTRA_GR_LD_FLAGS+=-no-undefined
|
||||
EXTRA_GR_LD_FLAGS+=-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2
|
||||
.ENDIF
|
||||
|
||||
# don't use SOLARLIB for LDFLAGS because it pulls in system graphite so build will fail
|
||||
|
|
12
hunspell/hunspell-mingw.patch
Normal file
12
hunspell/hunspell-mingw.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- misc/hunspell-1.2.9/src/tools/hunspell.cxx 2010-02-27 23:37:14.000000000 +0900
|
||||
+++ misc/build/hunspell-1.2.9/src/tools/hunspell.cxx 2010-04-25 07:57:39.233875000 +0900
|
||||
@@ -27,7 +27,9 @@
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
+#ifndef __MINGW32__
|
||||
#define gettext
|
||||
+#endif
|
||||
#define LIBDIR "C:\\Hunspell\\"
|
||||
#define USEROOODIR "Application Data\\OpenOffice.org 2\\user\\wordbook"
|
||||
#define OOODIR \
|
|
@ -71,8 +71,11 @@ OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
|
|||
|
||||
.IF "$(GUI)"=="WNT"
|
||||
.IF "$(COM)"=="GCC"
|
||||
PATCH_FILES=\
|
||||
hunspell-mingw.patch
|
||||
|
||||
CONFIGURE_ACTION=configure
|
||||
CONFIGURE_FLAGS= --disable-shared --with-pic
|
||||
CONFIGURE_FLAGS= --disable-shared --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
|
||||
BUILD_ACTION=make
|
||||
OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
|
||||
.ELSE
|
||||
|
|
|
@ -153,6 +153,7 @@ icu_LIBS=-lmingwthrd
|
|||
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
||||
icu_LIBS+=-lstdc++_s
|
||||
.ENDIF
|
||||
icu_LDFLAGS+=-Wl,--enable-runtime-pseudo-reloc-v2
|
||||
CONFIGURE_ACTION+=sh -c 'CFLAGS="-O -D_MT" CXXFLAGS="-O -D_MT" LDFLAGS="$(icu_LDFLAGS)" LIBS="$(icu_LIBS)" ./configure --build=i586-pc-mingw32 --enable-layout --enable-static --enable-shared=yes --enable-64bit-libs=no'
|
||||
|
||||
#CONFIGURE_FLAGS=--enable-layout --enable-static --enable-shared=yes --enable-64bit-libs=no
|
||||
|
|
24
libxml2/libxml2-mingw.patch
Executable file → Normal file
24
libxml2/libxml2-mingw.patch
Executable file → Normal file
|
@ -9,6 +9,19 @@
|
|||
*-*-cygwin*)
|
||||
MODULE_EXTENSION=".dll"
|
||||
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lcygwin" >&5
|
||||
@@ -20632,11 +20636,10 @@
|
||||
|
||||
fi
|
||||
case $host_os in
|
||||
- *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
|
||||
+ *mingw32*)
|
||||
WITH_THREADS="1"
|
||||
THREADS_W32="Win32"
|
||||
THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
|
||||
- fi
|
||||
;;
|
||||
*cygwin*) THREAD_LIBS=""
|
||||
;;
|
||||
--- misc/libxml2-2.7.6/libxml.h 2007-11-23 19:47:23.000000000 +0900
|
||||
+++ misc/build/libxml2-2.7.6/libxml.h 2009-07-10 14:37:34.988250000 +0900
|
||||
@@ -30,6 +30,10 @@
|
||||
|
@ -22,3 +35,14 @@
|
|||
#include <libxml/xmlversion.h>
|
||||
#endif
|
||||
|
||||
--- misc/libxml2-2.7.6/include/libxml/xmlexports.h 2009-09-25 00:31:59.000000000 +0900
|
||||
+++ misc/build/libxml2-2.7.6/include/libxml/xmlexports.h 2010-06-06 11:15:54.160750000 +0900
|
||||
@@ -113,7 +113,7 @@
|
||||
* _imp__xmlFree listed as missing. Try to workaround the problem
|
||||
* by also making that declaration when compiling client code.
|
||||
*/
|
||||
- #if !defined(LIBXML_STATIC)
|
||||
+ #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
||||
#define XMLPUBFUN __declspec(dllexport)
|
||||
#define XMLPUBVAR __declspec(dllexport)
|
||||
#else
|
||||
|
|
|
@ -55,17 +55,17 @@ PATCH_FILES=libxml2-configure.patch \
|
|||
|
||||
.IF "$(OS)"=="WNT"
|
||||
.IF "$(COM)"=="GCC"
|
||||
xml2_CC=$(CC)
|
||||
xml2_CC=$(CC) -mthreads
|
||||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
xml2_CC+=-shared-libgcc
|
||||
.ENDIF
|
||||
xml2_LIBS=-lws2_32 -lmingwthrd
|
||||
xml2_LIBS=-lws2_32
|
||||
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
||||
xml2_LIBS+=-lstdc++_s
|
||||
.ENDIF
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure
|
||||
CONFIGURE_FLAGS=--enable-ipv6=no --without-python --without-zlib --enable-static=no --without-debug --build=i586-pc-mingw32 --host=i586-pc-mingw32 lt_cv_cc_dll_switch="-shared" CC="$(xml2_CC)" CFLAGS=-D_MT LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc -L$(ILIB:s/;/ -L/)" LIBS="$(xml2_LIBS)" OBJDUMP="$(WRAPCMD) objdump"
|
||||
CONFIGURE_FLAGS=--enable-ipv6=no --without-python --without-zlib --enable-static=no --without-debug --build=i586-pc-mingw32 --host=i586-pc-mingw32 lt_cv_cc_dll_switch="-shared" CC="$(xml2_CC)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 -L$(ILIB:s/;/ -L/)" LIBS="$(xml2_LIBS)" OBJDUMP=objdump
|
||||
BUILD_ACTION=$(GNUMAKE)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
.ELSE
|
||||
|
|
36
libxslt/libxslt-mingw.patch
Normal file
36
libxslt/libxslt-mingw.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
--- misc/libxslt-1.1.26/ltmain.sh 2010-06-06 14:43:28.785750000 +0900
|
||||
+++ misc/build/libxslt-1.1.26/ltmain.sh 2010-06-06 15:14:26.176375000 +0900
|
||||
@@ -2983,15 +2983,7 @@
|
||||
*mingw* )
|
||||
lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
|
||||
case $build in
|
||||
- *mingw* ) # actually, msys
|
||||
- # awkward: cmd appends spaces to result
|
||||
- lt_sed_strip_trailing_spaces="s/[ ]*\$//"
|
||||
- func_to_host_path_tmp1=`( cmd //c echo "$1" |\
|
||||
- $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
|
||||
- func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
|
||||
- $SED -e "$lt_sed_naive_backslashify"`
|
||||
- ;;
|
||||
- *cygwin* )
|
||||
+ *cygwin* | *mingw* )
|
||||
func_to_host_path_tmp1=`cygpath -w "$1"`
|
||||
func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
|
||||
$SED -e "$lt_sed_naive_backslashify"`
|
||||
@@ -3062,15 +3054,7 @@
|
||||
func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
|
||||
$SED -e 's|^:*||' -e 's|:*$||'`
|
||||
case $build in
|
||||
- *mingw* ) # Actually, msys.
|
||||
- # Awkward: cmd appends spaces to result.
|
||||
- lt_sed_strip_trailing_spaces="s/[ ]*\$//"
|
||||
- func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
|
||||
- $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
|
||||
- func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
|
||||
- $SED -e "$lt_sed_naive_backslashify"`
|
||||
- ;;
|
||||
- *cygwin* )
|
||||
+ *cygwin* | *mingw* )
|
||||
func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
|
||||
func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
|
||||
$SED -e "$lt_sed_naive_backslashify"`
|
|
@ -52,22 +52,23 @@ TARFILE_NAME=$(PRJNAME)-$(LIBXSLTVERSION)
|
|||
TARFILE_MD5=e61d0364a30146aaa3001296f853b2b9
|
||||
PATCH_FILES=libxslt-configure.patch \
|
||||
libxslt-win_manifest.patch \
|
||||
libxslt-mingw.patch \
|
||||
libxslt-gnome602728.patch
|
||||
|
||||
# This is only for UNX environment now
|
||||
.IF "$(OS)"=="WNT"
|
||||
.IF "$(COM)"=="GCC"
|
||||
xslt_CC=$(CC)
|
||||
xslt_CC=$(CC) -mthreads
|
||||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
xslt_CC+=-shared-libgcc
|
||||
.ENDIF
|
||||
xslt_LIBS=-lmingwthrd
|
||||
xslt_LIBS=
|
||||
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
||||
xslt_LIBS+=-lstdc++_s
|
||||
.ENDIF
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure
|
||||
CONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xslt_CC)" CFLAGS="$(xslt_CFLAGS) -D_MT" LDFLAGS="-no-undefined -L$(ILIB:s/;/ -L/)" LIBS="$(xslt_LIBS)" LIBXML2LIB=$(LIBXML2LIB) OBJDUMP="$(WRAPCMD) objdump"
|
||||
CONFIGURE_FLAGS=--without-crypto --without-python --enable-static=no --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xslt_CC)" CFLAGS="$(xslt_CFLAGS)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 -L$(ILIB:s/;/ -L/)" LIBS="$(xslt_LIBS)" LIBXML2LIB=$(LIBXML2LIB) OBJDUMP=objdump
|
||||
BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
|
|
|
@ -89,6 +89,7 @@ python_LDFLAGS=-mno-cygwin -mthreads
|
|||
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||
python_LDFLAGS+=-shared-libgcc
|
||||
.ENDIF
|
||||
python_LDFLAGS+=-shared-libgcc -Wl,--enable-runtime-pseudo-reloc-v2
|
||||
CONFIGURE_ACTION=./configure --prefix=$(MYCWD)/python-inst --enable-shared CC="$(CC:s/guw.exe //)" CXX="$(CXX:s/guw.exe //)" MACHDEP=MINGW32 LN="cp -p" CFLAGS="$(python_CFLAGS)" LDFLAGS="$(python_LDFLAGS)"
|
||||
BUILD_ACTION=$(ENV_BUILD) make && make install
|
||||
.ELSE
|
||||
|
|
Loading…
Reference in a new issue