[uClibc] [PATCH] small patch for buildroot
Kevin P. Fleming
kpfleming at backtobasicsmgmt.com
Fri Mar 5 01:04:25 UTC 2004
buildroot currently installs a symlink from /usr/bin/yacc to
/usr/bin/bison, but this is not correct. bison needs a "-y" argument to
get it to operate in yacc-compatibility mode, otherwise it does not
produce the correct output filenames. The patches below will make
buildroot install a small shell-script at /usr/bin/yacc instead.
--- buildroot/make/bison.mk.orig Thu Mar 4 17:56:27 2004
+++ buildroot/make/bison.mk Thu Mar 4 18:01:14 2004
@@ -49,7 +49,7 @@
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) install
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
- (cd $(TARGET_DIR)/usr/bin; ln -fs bison yacc)
+ cp -a $(SOURCE_DIR)/yacc $(TARGET_DIR)/usr/bin/yacc
bison: uclibc $(TARGET_DIR)/$(BISON_TARGET_BINARY)
--- /dev/null Wed Dec 31 17:00:00 1969
+++ buildroot/sources/yacc Thu Mar 4 18:00:09 2004
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/bison -y "$@"
More information about the uClibc
mailing list