[BusyBox] to correct big reorganization ;)

Vladimir N. Oleynik dzo at simtreas.ru
Thu Nov 1 11:13:02 UTC 2001


Hi, Erik!

I see busybox and uclibc use new cc option mpreferred-stack-boundary.
My gcc not support this :(
Also i think INSTALL file grow old ;)
Please see my last minimal patch.


--w
vodz
-------------- next part --------------
diff -rbu busybox.orig/INSTALL busybox/INSTALL
--- busybox.orig/INSTALL	Thu May 10 18:12:20 2001
+++ busybox/INSTALL	Thu Nov  1 20:51:23 2001
@@ -1,8 +1,10 @@
-1) Check Config.h and adjust if you need a different functionality than
+1) make config and adjust if you need a different functionality than
    defined by default.
 
-2) Check the Makefile
+2) make dep
 
-3) make
+3) Check the Makefile
 
-4) make install
+4) make
+
+5) make install
diff -rbu busybox.orig/Makefile busybox/Makefile
--- busybox.orig/Makefile	Wed Oct 31 14:07:12 2001
+++ busybox/Makefile	Thu Nov  1 20:52:50 2001
@@ -85,6 +85,8 @@
 MAKEFILES       = $(TOPDIR)/.config
 export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP
 
+CC_SUPPORT_OPT_MPREFERRED-STACK-BOUNDARY = false
+
 
 # To compile vs uClibc, just use the compiler wrapper built by uClibc...
 # Everything should compile and work as expected these days...
@@ -113,7 +115,7 @@
 	>/dev/null 2>&1; then echo "-Os"; else echo "-O2" ; fi}
 
 WARNINGS=-Wall -Wstrict-prototypes -Wshadow
-CFLAGS = -I $(TOPDIR)/include
+CFLAGS = -I$(TOPDIR)/include
 ARFLAGS = -r
 
 #
@@ -147,7 +149,10 @@
     LDFLAGS += -Wl,-warn-common
     STRIPCMD    =
 else
-    CFLAGS  += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -mpreferred-stack-boundary=2 -D_GNU_SOURCE
+    CFLAGS  += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
+    ifeq ($(strip $(CC_SUPPORT_OPT_MPREFERRED-STACK-BOUNDARY)),true)
+	CFLAGS  += -mpreferred-stack-boundary=2
+    endif
     LDFLAGS += -s -Wl,-warn-common
     STRIPCMD    = $(STRIP) --remove-section=.note --remove-section=.comment $(PROG)
 endif


More information about the busybox mailing list