aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 33dd1e113..a71ea68b4 100644
--- a/Makefile
+++ b/Makefile
@@ -101,18 +101,18 @@ OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&
101 101
102WARNINGS = -Wall 102WARNINGS = -Wall
103 103
104ifeq ($(DOLFS),true) 104ifeq ($(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
107endif 107endif
108ifeq ($(DODMALLOC),true) 108ifeq ($(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
114endif 114endif
115ifeq ($(DODEBUG),true) 115ifeq ($(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)
123endif 123endif
124ifeq ($(DOSTATIC),true) 124ifeq ($(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
150ifeq ($(DISABLE_VPATH),yes) 150ifeq ($(strip $(DISABLE_VPATH)),yes)
151 CONFIG_H = Config.h 151 CONFIG_H = Config.h
152else 152else
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)"'
165endif 165endif
166 166
167ifneq ($(USE_SYSTEM_PWD_GRP),true) 167ifneq ($(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)
170else 170else