Return-Path: X-Original-To: apmail-celix-commits-archive@www.apache.org Delivered-To: apmail-celix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34A11175C3 for ; Mon, 28 Sep 2015 10:02:47 +0000 (UTC) Received: (qmail 94663 invoked by uid 500); 28 Sep 2015 10:02:47 -0000 Delivered-To: apmail-celix-commits-archive@celix.apache.org Received: (qmail 94595 invoked by uid 500); 28 Sep 2015 10:02:47 -0000 Mailing-List: contact commits-help@celix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@celix.apache.org Delivered-To: mailing list commits@celix.apache.org Received: (qmail 94391 invoked by uid 99); 28 Sep 2015 10:02:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2015 10:02:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B7282E00B4; Mon, 28 Sep 2015 10:02:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bpetri@apache.org To: commits@celix.apache.org Date: Mon, 28 Sep 2015 10:02:52 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [07/19] celix git commit: CELIX-159: Added -pthread flag. Among other things, this will define _REENTRANT. CELIX-159: Added -pthread flag. Among other things, this will define _REENTRANT. Project: http://git-wip-us.apache.org/repos/asf/celix/repo Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/5e6d2f2c Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/5e6d2f2c Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/5e6d2f2c Branch: refs/heads/feature/CELIX-247_android_support Commit: 5e6d2f2c374b3c8d738e167c492a541042ea257f Parents: 1010f71 Author: Pepijn Noltes Authored: Tue Sep 1 16:00:13 2015 +0200 Committer: Pepijn Noltes Committed: Tue Sep 1 16:04:43 2015 +0200 ---------------------------------------------------------------------- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/celix/blob/5e6d2f2c/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bee365..a885df5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,8 @@ set(CMAKE_INSTALL_NAME_DIR "@rpath") SET(CMAKE_BUILD_TYPE "Debug") IF(UNIX) - SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall ${CMAKE_C_FLAGS}") + SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -Wall -pthread ${CMAKE_C_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "-pthread ${CMAKE_EXE_LINKER_FLAGS}") ENDIF() IF(WIN32) SET(CMAKE_C_FLAGS "-D_CRT_SECURE_NO_WARNINGS ${CMAKE_C_FLAGS}")