summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-02-26 09:14:15 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2016-02-26 09:14:15 -0600
commit97e0a5ce74396c949399be687fe44dd16c718523 (patch)
treeb69a3a258e447575900c15ca517b59f7ce691565
parent7b69495c5dac10e917a689c0023b8309bd49aed7 (diff)
downloadcygwin-gcc-97e0a5ce74396c949399be687fe44dd16c718523.tar.gz
cygwin-gcc-97e0a5ce74396c949399be687fe44dd16c718523.tar.xz
cygwin-gcc-97e0a5ce74396c949399be687fe44dd16c718523.zip
Commit patch
-rw-r--r--0027-link-w32api.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0027-link-w32api.patch b/0027-link-w32api.patch
new file mode 100644
index 0000000..d588f9b
--- /dev/null
+++ b/0027-link-w32api.patch
@@ -0,0 +1,26 @@
+https://cygwin.com/ml/cygwin/2016-02/msg00393.html
+
+--- a/gcc/config/i386/cygwin.h 2016-02-11 17:21:55.058829500 -0600
++++ b/gcc/config/i386/cygwin.h 2016-02-25 11:48:51.241207300 -0600
+@@ -39,7 +39,6 @@ along with GCC; see the file COPYING3.
+
+ #undef STARTFILE_SPEC
+ #define STARTFILE_SPEC "\
+- -L%R/usr/lib/w32api \
+ %{!shared: %{!mdll: crt0%O%s \
+ %{pg:gcrt0%O%s}}}\
+ %{shared:crtbeginS.o%s;:crtbegin.o%s} \
+@@ -56,6 +55,13 @@
+ fvtable-verify=std:vtv_end.o%s} \
+ crtend.o%s"
+
++#undef STANDARD_STARTFILE_PREFIX
++#define STANDARD_STARTFILE_PREFIX "/usr/lib/"
++#undef STANDARD_STARTFILE_PREFIX_1
++#define STANDARD_STARTFILE_PREFIX_1 "/lib/"
++#undef STANDARD_STARTFILE_PREFIX_2
++#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/w32api/"
++
+ /* Normally, -lgcc is not needed since everything in it is in the DLL, but we
+ want to allow things to be added to it when installing new versions of
+ GCC without making a new CYGWIN.DLL, so we leave it. Profiling is handled