This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Add -lwinsock -lcoredll to LIB_SPEC for arm-wince-pe [PATCH]
- From: Shaun Jackman <sjackman at pathwayconnect dot com>
- To: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 11 Jul 2003 08:16:43 -0600
- Subject: Add -lwinsock -lcoredll to LIB_SPEC for arm-wince-pe [PATCH]
- Organization: Pathway Connectivity
For "Hello, world!" to compile cleanly in my tool-chain, -lwinsock and
-lcoredll must be added to the LIB_SPEC. Can this patch be applied as
is, or should it perhaps be armored in a #ifdef NEED_WINSOCK and #ifdef
NEED_COREDLL, which could supposedly be defined by an --enable or --with
switch.
Thanks,
Shaun
* gcc/config/arm/pe.h: Add -lwinsock -lcoredll to LIB_SPEC.
diff -ur gcc-3.3-/gcc/config/arm/pe.h gcc-3.3/gcc/config/arm/pe.h
--- gcc-3.3-/gcc/config/arm/pe.h 2002-05-18 23:23:00.000000000 -0600
+++ gcc-3.3/gcc/config/arm/pe.h 2003-06-18 14:03:54.000000000 -0600
@@ -22,6 +22,10 @@
/* Enable PE specific code. */
#define ARM_PE 1
+/* Add winsock.dll and coredll.dll to the link. */
+#undef LIB_SPEC
+#define LIB_SPEC "-lc -lwinsock -lcoredll"
+
#define ARM_PE_FLAG_CHAR '@'
/* Ensure that @x. will be stripped from the function name. */