aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-23 05:42:08 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-23 05:42:08 +0000
commita709317cea0180772616152d2f1af195a95703fd (patch)
treec9b53fa236820a0bdb28cb3f531b0710f9807546 /Makefile
parenta07f0b040808c7b1a3b81cbbe3a580f023450817 (diff)
downloadbusybox-a709317cea0180772616152d2f1af195a95703fd.tar.gz
More stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d1d0426d2..0d8d3fbcb 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,11 @@ BUILDTIME=$(shell date "+%Y%m%d-%H%M")
# Comment out the following to make a debuggable build
# Leave this off for production use.
-#DODEBUG=true
+DODEBUG=false
+# If you want a static binary, turn this on. I can't think
+# of many situations where anybody would ever want it static,
+# but...
+DOSTATIC=false
#This will choke on a non-debian system
ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
@@ -37,6 +41,11 @@ else
CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
LDFLAGS= -s
STRIP= strip --remove-section=.note --remove-section=.comment $(PROG)
+ #Only staticly link when _not_ debugging
+ ifeq ($(DOSTATIC),true)
+ LDFLAGS+= --static
+ endif
+
endif
ifndef $(prefix)