diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-23 05:42:08 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-23 05:42:08 +0000 |
commit | caeb31a04cd21198ca2125fd24703d172bd8e189 (patch) | |
tree | c9b53fa236820a0bdb28cb3f531b0710f9807546 /Makefile | |
parent | 25cfd4040c63a3c02436dc6402a65ebf2b9179b5 (diff) | |
download | busybox-w32-caeb31a04cd21198ca2125fd24703d172bd8e189.tar.gz busybox-w32-caeb31a04cd21198ca2125fd24703d172bd8e189.tar.bz2 busybox-w32-caeb31a04cd21198ca2125fd24703d172bd8e189.zip |
More stuff
git-svn-id: svn://busybox.net/trunk/busybox@57 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -22,7 +22,11 @@ BUILDTIME=$(shell date "+%Y%m%d-%H%M") | |||
22 | 22 | ||
23 | # Comment out the following to make a debuggable build | 23 | # Comment out the following to make a debuggable build |
24 | # Leave this off for production use. | 24 | # Leave this off for production use. |
25 | #DODEBUG=true | 25 | DODEBUG=false |
26 | # If you want a static binary, turn this on. I can't think | ||
27 | # of many situations where anybody would ever want it static, | ||
28 | # but... | ||
29 | DOSTATIC=false | ||
26 | 30 | ||
27 | #This will choke on a non-debian system | 31 | #This will choke on a non-debian system |
28 | ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` | 32 | ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` |
@@ -37,6 +41,11 @@ else | |||
37 | CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | 41 | CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE |
38 | LDFLAGS= -s | 42 | LDFLAGS= -s |
39 | STRIP= strip --remove-section=.note --remove-section=.comment $(PROG) | 43 | STRIP= strip --remove-section=.note --remove-section=.comment $(PROG) |
44 | #Only staticly link when _not_ debugging | ||
45 | ifeq ($(DOSTATIC),true) | ||
46 | LDFLAGS+= --static | ||
47 | endif | ||
48 | |||
40 | endif | 49 | endif |
41 | 50 | ||
42 | ifndef $(prefix) | 51 | ifndef $(prefix) |