summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen2001-04-03 16:38:37 +0000
committerEric Andersen2001-04-03 16:38:37 +0000
commitc0c502e172833db872e9760e96dab55244537100 (patch)
tree56adaeba8b892a37168c08d2796564de770e37cb /Makefile
parentc4cef5ab063d7abb604d48610424566202dcade0 (diff)
downloadbusybox-c0c502e172833db872e9760e96dab55244537100.zip
busybox-c0c502e172833db872e9760e96dab55244537100.tar.gz
Fix for bug 1143 from Larry Doolittle
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 231073a..b57d801 100644
--- a/Makefile
+++ b/Makefile
@@ -224,7 +224,6 @@ else
endif
LIBBB = libbb
-LIBBB_DIR = $(BB_SRC_DIR:=/)$(LIBBB)
LIBBB_LIB = libbb.a
LIBBB_CSRC= ask_confirmation.c check_wildcard_match.c chomp.c copy_file.c \
copy_file_chunk.c create_path.c device_open.c error_msg.c \
@@ -238,7 +237,11 @@ syslog_msg_with_name.c time_string.c trim.c vdprintf.c wfopen.c xfuncs.c \
xregcomp.c error_msg_and_die.c perror_msg.c perror_msg_and_die.c \
verror_msg.c vperror_msg.c mtab.c mtab_file.c
LIBBB_OBJS=$(patsubst %.c,$(LIBBB)/%.o, $(LIBBB_CSRC))
-LIBBB_CFLAGS = -I$(LIBBB_DIR)
+LIBBB_CFLAGS = -I$(LIBBB)
+ifneq ($(strip $(BB_SRC_DIR)),)
+ LIBBB_CFLAGS += -I$(BB_SRC_DIR)/$(LIBBB)
+endif
+
# Put user-supplied flags at the end, where they
# have a chance of winning.