File sash-3.7-shared_libc.patch of Package sash

Index: Makefile
===================================================================
--- Makefile.orig	2009-05-06 15:20:54.000000000 +0200
+++ Makefile	2009-05-06 15:34:47.000000000 +0200
@@ -14,14 +14,13 @@ HAVE_BSD_MOUNT		= 0
 MOUNT_TYPE		= '"ext3"'
 
 
-CFLAGS = -O3 -Wall -Wmissing-prototypes $(RPM_OPT_FLAGS) \
+CFLAGS = -Wall -Wmissing-prototypes $(RPM_OPT_FLAGS) \
 	-DHAVE_GZIP=$(HAVE_GZIP) \
 	-DHAVE_LINUX_ATTR=$(HAVE_LINUX_ATTR) \
 	-DHAVE_LINUX_MOUNT=$(HAVE_LINUX_MOUNT) \
 	-DHAVE_BSD_MOUNT=$(HAVE_BSD_MOUNT) \
 	-DMOUNT_TYPE=$(MOUNT_TYPE)
 
-LDFLAGS = -static
 LIBS = -lz
 
 
@@ -34,7 +33,7 @@ OBJS = sash.o cmds.o cmd_dd.o cmd_ed.o c
 
 
 sash:	$(OBJS)
-	$(CC) $(LDFLAGS) -o sash $(OBJS) $(LIBS)
+	$(CC) -o sash $(OBJS) -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic -lc
 
 clean:
 	rm -f $(OBJS) sash