diff sources/toys/ccwrap.c @ 812:4e1e6aa7f445

Convince gcc to build/install libgcc_eh.a even for --disable-shared compilers, and tell the wrapper to expect it.
author Rob Landley <rob@landley.net>
date Sat, 22 Aug 2009 04:07:00 -0500
parents d0b74a631587
children 1067e99efbdc
line wrap: on
line diff
--- a/sources/toys/ccwrap.c	Fri Aug 21 23:21:57 2009 -0500
+++ b/sources/toys/ccwrap.c	Sat Aug 22 04:07:00 2009 -0500
@@ -5,6 +5,8 @@
  * Copyright (C) 2006-2009 Rob Landley <rob@landley.net>
  *
  * Wrapper to use uClibc with gcc, and make gcc relocatable.
+ *
+ * Licensed under GPLv2.
  */
 
 #define _GNU_SOURCE
@@ -42,7 +44,7 @@
 		else gcc_argv[argcnt++] = "-lgcc_eh"; \
 	} while (0);
 #else
-#define ADD_GCC_S()
+#define ADD_GCC_S() gcc_argv[argcnt++] = "-lgcc_eh"
 #endif
 
 // Confirm that a regular file exists, and (optionally) has the executable bit.