From 46296cc869af0d5a6cb171e2278890fe6b648f25 Mon Sep 17 00:00:00 2001 From: sdong Date: Fri, 12 Jun 2015 13:54:29 -0700 Subject: [PATCH] Cygwin build not to use -fPIC Summary: Cygwin doesn't support -fPIC. Remove it. Not sure whether we can build shared library in Cygwin but at least it can build without warning. Test Plan: Build under Cygwin Reviewers: yhchiang, rven, kradhakrishnan, igor Reviewed By: igor Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D40077 --- build_tools/build_detect_platform | 1 + 1 file changed, 1 insertion(+) diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 98da12b06..35ca03d36 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -157,6 +157,7 @@ case "$TARGET_OS" in ;; Cygwin) PLATFORM=CYGWIN + PLATFORM_SHARED_CFLAGS="" PLATFORM_CXXFLAGS="-std=gnu++11" COMMON_FLAGS="$COMMON_FLAGS -DCYGWIN" if [ -z "$USE_CLANG" ]; then