|
@@ -10,7 +10,7 @@ DEP_FLAGS += -g -O3 -march=nocona |
|
|
# Static libs don't usually compiled with -fPIC, but since we're including them in a shared library, it's needed. |
|
|
# Static libs don't usually compiled with -fPIC, but since we're including them in a shared library, it's needed. |
|
|
DEP_FLAGS += -fPIC |
|
|
DEP_FLAGS += -fPIC |
|
|
|
|
|
|
|
|
ifeq ($(ARCH), mac) |
|
|
|
|
|
|
|
|
ifdef ARCH_MAC |
|
|
DEP_MAC_SDK_FLAGS := -mmacosx-version-min=10.7 |
|
|
DEP_MAC_SDK_FLAGS := -mmacosx-version-min=10.7 |
|
|
DEP_FLAGS += $(DEP_MAC_SDK_FLAGS) -stdlib=libc++ |
|
|
DEP_FLAGS += $(DEP_MAC_SDK_FLAGS) -stdlib=libc++ |
|
|
DEP_LDFLAGS += $(DEP_MAC_SDK_FLAGS) -stdlib=libc++ |
|
|
DEP_LDFLAGS += $(DEP_MAC_SDK_FLAGS) -stdlib=libc++ |
|
@@ -35,12 +35,13 @@ CMAKE += -DCMAKE_INSTALL_LIBDIR=lib |
|
|
|
|
|
|
|
|
ifdef ARCH_MAC |
|
|
ifdef ARCH_MAC |
|
|
SHA256SUM := shasum -a 256 |
|
|
SHA256SUM := shasum -a 256 |
|
|
|
|
|
SED := sed -i '' |
|
|
else |
|
|
else |
|
|
SHA256SUM := sha256sum |
|
|
SHA256SUM := sha256sum |
|
|
|
|
|
SED := sed -i |
|
|
endif |
|
|
endif |
|
|
SHA256 := sha256check() { echo "$$2 $$1" | $(SHA256SUM) -c; }; sha256check |
|
|
SHA256 := sha256check() { echo "$$2 $$1" | $(SHA256SUM) -c; }; sha256check |
|
|
|
|
|
|
|
|
SED := perl -pi -e |
|
|
|
|
|
|
|
|
|
|
|
# Export environment for all dependency targets |
|
|
# Export environment for all dependency targets |
|
|
$(DEPS): export CFLAGS = $(DEP_CFLAGS) |
|
|
$(DEPS): export CFLAGS = $(DEP_CFLAGS) |
|
|