bionic/libstdc++/Android.mk
Elliott Hughes 52d6233296 Report errors to the log, not just stderr.
In particular this affects assert(3) and __cxa_pure_virtual, both of
which have managed to confuse people this week by apparently aborting
without reason. (Because stderr goes nowhere, normally.)

Bug: 6852995
Bug: 6840813
Change-Id: I7f5d17d5ddda439e217b7932096702dc013b9142
2012-07-27 17:43:38 -07:00

44 lines
856 B
Makefile

LOCAL_PATH:= $(call my-dir)
# Common C++ flags to build this library.
# Note that we need to access private Bionic headers
# and define ANDROID_SMP accordingly.
libstdc++_cflags := -Ibionic/libc/
ifeq ($(TARGET_CPU_SMP),true)
libstdc++_cflags += -DANDROID_SMP=1
else
libstdc++_cflags += -DANDROID_SMP=0
endif
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
src/one_time_construction.cpp \
src/new.cpp \
src/pure_virtual.cpp \
src/typeinfo.cpp
LOCAL_MODULE:= libstdc++
LOCAL_CFLAGS := $(libstdc++_cflags)
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
src/one_time_construction.cpp \
src/new.cpp \
src/pure_virtual.cpp \
src/typeinfo.cpp
LOCAL_CFLAGS := $(libstdc++_cflags)
LOCAL_MODULE:= libstdc++
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
include $(BUILD_STATIC_LIBRARY)