This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add -lwinsock -lcoredll to LIB_SPEC for arm-wince-pe [PATCH]


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.  */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]