File uClibc.Makefile-gcc-uClibc-wrapper.patch of Package uClibc

---
 Makefile.in |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

--- a/Makefile.in
+++ b/Makefile.in
@@ -19,7 +19,7 @@ sub_headers := headers
 
 ifeq ($(HAVE_DOT_CONFIG),y)
 
-all: pregen libs
+all: pregen libs scripts
 libs: pregen
 
 # In this section, we need .config
@@ -178,6 +178,14 @@ $(LOCAL_INSTALL_PATH):
 	HOSTCC="$(HOSTCC)" \
 	install_dev
 
+scripts: gcc-uclibc
+
+gcc-uclibc:
+	sed -e "s,@RUNTIME_PREFIX@,$(PREFIX)$(RUNTIME_PREFIX),g; \
+		s,@DEVEL_PREFIX@,$(PREFIX)$(DEVEL_PREFIX),g; \
+		s,@SHARED_LIB_LOADER_PREFIX@,$(PREFIX)$(SHARED_LIB_LOADER_PREFIX),g;" \
+		< gcc-uClibc.in > gcc-uClibc
+
 install: install_runtime install_dev