]> git.pld-linux.org Git - packages/crossmingw32-gcc.git/blame - crossmingw32-gcc-libiberty.patch
- allow override flags.
[packages/crossmingw32-gcc.git] / crossmingw32-gcc-libiberty.patch
CommitLineData
490e570b
JB
1diff -r -N -C2 gas-980103.orig/libiberty/config/mt-mingw32 gas-980103/libiberty/config/mt-mingw32
2*** gas-980103.orig/libiberty/config/mt-mingw32 Thu Jan 1 00:00:00 1970
3--- gas-980103/libiberty/config/mt-mingw32 Sat Jan 3 15:27:05 1998
4***************
5*** 0 ****
6--- 1,27 ----
7+ # Mingw32 target Makefile fragment.
8+ # The autoconfiguration fails for a Mingw32 target, because of an
9+ # incompatible definition of sys_errlist, which is imported from a DLL.
10+ # Therefore, we compute the dependencies by hand.
11+
12+ HDEFINES = -DNO_SYS_PARAM_H -DNO_SYS_FILE_H
13+ CONFIG_H = mgconfig.h
14+ NEEDED_LIST = mgneeded-list
15+
16+ mgconfig.h: Makefile
17+ if [ -f ../newlib/Makefile ]; then \
18+ $(MAKE) $(FLAGS_TO_PASS) xconfig.h; \
19+ cp xconfig.h mgconfig.h; \
20+ else \
21+ echo "#define NEED_basename 1" > mgconfig.h; \
22+ echo "#define NEED_sys_siglist 1" >> mgconfig.h; \
23+ echo "#define NEED_strsignal 1" >> mgconfig.h; \
24+ echo "#define NEED_psignal 1" >> mgconfig.h; \
25+ fi
26+
27+ mgneeded-list: Makefile
28+ if [ -f ../newlib/Makefile ]; then \
29+ $(MAKE) $(FLAGS_TO_PASS) xneeded-list; \
30+ cp xneeded-list mgneeded-list; \
31+ else \
32+ echo getopt.o vasprintf.o > mgneeded-list; \
33+ fi
34diff -r -N -C2 gcc-2.95.2/libiberty/config.table~ gcc-2.95/libiberty/config.table
35*** gcc-2.95.2/libiberty/config.table~ Wed Apr 7 05:31:23 1999
36--- gcc-2.95.2/libiberty/config.table Mon Jul 31 21:01:49 2000
37***************
38*** 23,26 ****
39--- 23,30 ----
40 arm*-*-*) frags="${frags} ../../config/mh-armpic" ;;
41 hppa*-*-*) frags="${frags} ../../config/mh-papic" ;;
42+ i[3456]86-*-mingw32*) frags="${frags} ../../config/mt-mingw32" ;;
43+ # Mingw32 does not require strerror.o from REQUIRED_OFILES.
44+ # Worse: it will not compile it because of an incompatible sys_errlist
45+ # definition.
46 i[3456]86-*-*) frags="${frags} ../../config/mh-x86pic" ;;
47 powerpc*-*-aix*) ;;
48diff -r -N -C2 gas-980103.orig/libiberty/pexecute.c gas-980103/libiberty/pexecute.c
49*** gas-980103.orig/libiberty/pexecute.c Sat Jan 3 09:12:16 1998
50--- gas-980103/libiberty/pexecute.c Sat Jan 3 15:44:23 1998
51***************
52*** 223,227 ****
53--- 223,230 ----
54 #if defined (_WIN32)
55
56+ #include <io.h>
57+ #include <fcntl.h>
58 #include <process.h>
59+ #include <signal.h>
60 extern int _spawnv ();
61 extern int _spawnvp ();
62***************
63*** 236,240 ****
64 to remove the outermost set of double quotes from all arguments. */
65
66! const char * const *
67 fix_argv (argvec)
68 char **argvec;
69--- 239,243 ----
70 to remove the outermost set of double quotes from all arguments. */
71
72! char * const *
73 fix_argv (argvec)
74 char **argvec;
75***************
76*** 253,257 ****
77 if (temp[j] == '"')
78 {
79! newtemp = xmalloc (len + 2);
80 strncpy (newtemp, temp, j);
81 newtemp [j] = '\\';
82--- 256,260 ----
83 if (temp[j] == '"')
84 {
85! newtemp = (char *) xmalloc (len + 2);
86 strncpy (newtemp, temp, j);
87 newtemp [j] = '\\';
88***************
89*** 267,271 ****
90 }
91
92! return (const char * const *) argvec;
93 }
94
95--- 270,274 ----
96 }
97
98! return (char * const *) argvec;
99 }
100
This page took 0.063981 seconds and 4 git commands to generate.