aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1996-10-22 13:46:07 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1996-10-22 13:46:07 +0000
commit5100ad4664a2531e93612fbf1fb005517727eff3 (patch)
tree7ed67179a3a6e15d2b7e659fd4d9c8a684ff7004 /gcc
parent7d4440be74b9475fcef844e6cab5c1e94a429b71 (diff)
downloadgcc-5100ad4664a2531e93612fbf1fb005517727eff3.zip
gcc-5100ad4664a2531e93612fbf1fb005517727eff3.tar.gz
gcc-5100ad4664a2531e93612fbf1fb005517727eff3.tar.bz2
Support libraries like x86 cygwin does
From-SVN: r12995
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/cygwin32.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/rs6000/cygwin32.h b/gcc/config/rs6000/cygwin32.h
index 4ec6d9a..e89026e 100644
--- a/gcc/config/rs6000/cygwin32.h
+++ b/gcc/config/rs6000/cygwin32.h
@@ -36,18 +36,18 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN32__ -DPOSIX \
-D_POWER -D_ARCH_PPC -D__PPC__ -Asystem(winnt) -Acpu(powerpc) -Amachine(powerpc)"
-/* We have to dynamic link to get to the system dlls,
- and I've put all of libc and libm and the unix stuff into
- cygwin.dll, the import library is called 'libcygwin.a' */
+/* We have to dynamic link to get to the system DLLs. All of libc, libm and
+ the Unix stuff is in cygwin.dll. The import library is called
+ 'libcygwin.a'. For Windows applications, include more libraries, but
+ always include kernel32. We'd like to specific subsystem windows to
+ ld, but that doesn't work just yet. */
#undef LIB_SPEC
-#define LIB_SPEC "-lcygwin"
-
+#define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32"
#undef LINK_SPEC
#define LINK_SPEC "%{v:-V}"
-
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crti%O%s %{!:crt0%O%s}"