diff options
| author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-14 15:49:56 -0500 |
|---|---|---|
| committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-14 15:49:56 -0500 |
| commit | 72011c0b87ea47099cc62cab818a86eee502f7cc (patch) | |
| tree | 824b561ee1dc971cfc4e362006329c3e176dc0ac | |
| parent | 363f7a2dec61759f9b2691b06fc4b31eb66dbf4f (diff) | |
| download | cygwin-gcc-72011c0b87ea47099cc62cab818a86eee502f7cc.tar.gz cygwin-gcc-72011c0b87ea47099cc62cab818a86eee502f7cc.tar.xz cygwin-gcc-72011c0b87ea47099cc62cab818a86eee502f7cc.zip | |
Add .exe to unsuffixed output executables
http://cygwin.com/ml/cygwin-apps/2011-08/msg00169.html
| -rw-r--r-- | cygwin-gcc.spec | 7 | ||||
| -rw-r--r-- | gcc45-cross-exe-suffix.diff | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/cygwin-gcc.spec b/cygwin-gcc.spec index aa0c6fd..622cdec 100644 --- a/cygwin-gcc.spec +++ b/cygwin-gcc.spec @@ -5,7 +5,7 @@ %global gcc_version %{gcc_major}.%{gcc_minor}.%{gcc_micro} # Note, gcc_release must be integer, if you want to add suffixes to # %%{release}, append them after %%{gcc_release} on Release: line. -%global gcc_release 3 +%global gcc_release 4 %global build_ada 0 # building cross-gnat requires matching X.Y version of native gnat @@ -80,6 +80,7 @@ Patch9: gcc45-cross-ecjx.patch Patch10: gcc45-java-FIONREAD.diff Patch11: classpath-0.98-awt.patch Patch12: gcc45-peflags.diff +Patch13: gcc45-cross-exe-suffix.diff %description @@ -192,6 +193,7 @@ Cygwin cross-compiler for Java. %patch11 -p2 -b .awt~ %endif %patch12 -p2 -b .peflags~ +%patch13 -p1 -b .exe-suffix~ echo %{gcc_version} > gcc/BASE-VER echo 'Fedora Cygwin %{gcc_version}-%{gcc_release}' > gcc/DEV-PHASE @@ -496,6 +498,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Aug 14 2011 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> - 4.5.3-4 +- Add .exe to unsuffixed output executables, as with the native compiler. + * Wed Aug 10 2011 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> - 4.5.3-3 - Enable --large-address-aware for executables by default. - Re-enable java subpackage. diff --git a/gcc45-cross-exe-suffix.diff b/gcc45-cross-exe-suffix.diff new file mode 100644 index 0000000..0a71b11 --- /dev/null +++ b/gcc45-cross-exe-suffix.diff @@ -0,0 +1,12 @@ +--- a/gcc/gcc.c 2011-08-14 14:15:46.614869280 -0500 ++++ b/gcc/gcc.c 2011-08-14 14:16:05.757302186 -0500 +@@ -98,8 +98,7 @@ compilation is specified by a string cal + #endif + + /* By default there is no special suffix for target executables. */ +-/* FIXME: when autoconf is fixed, remove the host check - dj */ +-#if defined(TARGET_EXECUTABLE_SUFFIX) && defined(HOST_EXECUTABLE_SUFFIX) ++#if defined(TARGET_EXECUTABLE_SUFFIX) + #define HAVE_TARGET_EXECUTABLE_SUFFIX + #endif + |
