diff options
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -101,18 +101,18 @@ OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>& | |||
101 | 101 | ||
102 | WARNINGS = -Wall | 102 | WARNINGS = -Wall |
103 | 103 | ||
104 | ifeq ($(DOLFS),true) | 104 | ifeq ($(strip $(DOLFS)),true) |
105 | # For large file summit support | 105 | # For large file summit support |
106 | CFLAGS+=-D_FILE_OFFSET_BITS=64 | 106 | CFLAGS+=-D_FILE_OFFSET_BITS=64 |
107 | endif | 107 | endif |
108 | ifeq ($(DODMALLOC),true) | 108 | ifeq ($(strip $(DODMALLOC)),true) |
109 | # For testing mem leaks with dmalloc | 109 | # For testing mem leaks with dmalloc |
110 | CFLAGS+=-DDMALLOC | 110 | CFLAGS+=-DDMALLOC |
111 | LIBRARIES = -ldmalloc | 111 | LIBRARIES = -ldmalloc |
112 | # Force debug=true, since this is useless when not debugging... | 112 | # Force debug=true, since this is useless when not debugging... |
113 | DODEBUG = true | 113 | DODEBUG = true |
114 | endif | 114 | endif |
115 | ifeq ($(DODEBUG),true) | 115 | ifeq ($(strip $(DODEBUG)),true) |
116 | CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE | 116 | CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE |
117 | LDFLAGS += -Wl,-warn-common | 117 | LDFLAGS += -Wl,-warn-common |
118 | STRIP = | 118 | STRIP = |
@@ -121,7 +121,7 @@ else | |||
121 | LDFLAGS += -s -Wl,-warn-common | 121 | LDFLAGS += -s -Wl,-warn-common |
122 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) | 122 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) |
123 | endif | 123 | endif |
124 | ifeq ($(DOSTATIC),true) | 124 | ifeq ($(strip $(DOSTATIC)),true) |
125 | LDFLAGS += --static | 125 | LDFLAGS += --static |
126 | # | 126 | # |
127 | #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they | 127 | #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they |
@@ -147,7 +147,7 @@ endif | |||
147 | # | 147 | # |
148 | # Work in progress by <ldoolitt@recycle.lbl.gov>. | 148 | # Work in progress by <ldoolitt@recycle.lbl.gov>. |
149 | # If it gets in your way, set DISABLE_VPATH=yes | 149 | # If it gets in your way, set DISABLE_VPATH=yes |
150 | ifeq ($(DISABLE_VPATH),yes) | 150 | ifeq ($(strip $(DISABLE_VPATH)),yes) |
151 | CONFIG_H = Config.h | 151 | CONFIG_H = Config.h |
152 | else | 152 | else |
153 | VPATH = .:$(BB_SRC_DIR) | 153 | VPATH = .:$(BB_SRC_DIR) |
@@ -164,7 +164,7 @@ ifdef BB_INIT_SCRIPT | |||
164 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' | 164 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' |
165 | endif | 165 | endif |
166 | 166 | ||
167 | ifneq ($(USE_SYSTEM_PWD_GRP),true) | 167 | ifneq ($(strip $(USE_SYSTEM_PWD_GRP)),true) |
168 | PWD_LIB = pwd_grp/libpwd.a | 168 | PWD_LIB = pwd_grp/libpwd.a |
169 | LIBRARIES += $(PWD_LIB) | 169 | LIBRARIES += $(PWD_LIB) |
170 | else | 170 | else |