Add -lwinsock -lcoredll to LIB_SPEC for arm-wince-pe [PATCH]
Shaun Jackman
sjackman@pathwayconnect.com
Fri Jul 11 15:28:00 GMT 2003
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. */
More information about the Gcc
mailing list