author | Steven Luo <steven@steven676.net> | 2013-07-31 20:16:07 (GMT) |
---|---|---|
committer | Steven Luo <steven@steven676.net> | 2013-07-31 20:16:07 (GMT) |
commit | ececd8c5a029f5f8c0069a2ec872d7b4a795edc0 (patch) | |
tree | f44a2a25d96f98cc168ced3f074a84ad1dc57966 | |
parent | c7dcb61ebd7d9618a00fb9177f2d9056d745899f (diff) | |
download | busybox-ececd8c5a029f5f8c0069a2ec872d7b4a795edc0.zip busybox-ececd8c5a029f5f8c0069a2ec872d7b4a795edc0.tar.gz busybox-ececd8c5a029f5f8c0069a2ec872d7b4a795edc0.tar.bz2 |
Don't treat link-time warnings as errors
We want to use mktemp(3) in the mktemp applet (it's unsafe, but so is
that particular option of the applet, and mktemp() is the least unsafe
way of implementing that option), but forcing the linker to error out on
warnings breaks the build in this case.
Change-Id: I6e976e9b467d2241be4bb0f3628991d098c492f0
-rw-r--r-- | Android.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -146,6 +146,7 @@ LOCAL_SRC_FILES += android/libc/__set_errno.c endif LOCAL_C_INCLUDES := $(BUSYBOX_C_INCLUDES) LOCAL_CFLAGS := $(BUSYBOX_CFLAGS) +LOCAL_LDFLAGS += -Wl,--no-fatal-warnings LOCAL_MODULE := busybox LOCAL_MODULE_TAGS := eng debug LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) @@ -191,6 +192,7 @@ LOCAL_CFLAGS += \ -Dgetmntent=busybox_getmntent \ -Dgetmntent_r=busybox_getmntent_r \ -Dgenerate_uuid=busybox_generate_uuid +LOCAL_LDFLAGS += -Wl,--no-fatal-warnings LOCAL_FORCE_STATIC_EXECUTABLE := true LOCAL_MODULE := static_busybox LOCAL_MODULE_STEM := busybox |