Skip to content

Commit

Permalink
add Linux clang build config and travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Mar 21, 2015
1 parent b5e5673 commit fb5501e
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ matrix:
- ./configure && make -s -j2
- ./travis/runtests.sh

# TODO add this as soon as Linux-clang config is ready
# - env: TEST_NAME="clang (make)"
# compiler: clang
# script:
# - ./configure --config=Linux-clang && make -s -j2
- env: TEST_NAME="clang (make)"
compiler: clang
script:
- ./configure --config=Linux-clang && make -s -j2
- ./travis/runtests.sh

- env: TEST_NAME="arm-linux-gnueabi- (make)"
script:
Expand Down
72 changes: 72 additions & 0 deletions build/config/Linux-clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#
# $Id$
#
# Linux
#
# Make settings for Linux/clang
#
#

#
# General Settings
#
LINKMODE ?= SHARED
CLANG_VERSION ?= 3.5

#
# Define Tools
#
CC = clang-$(CLANG_VERSION)
CXX = clang++-$(CLANG_VERSION)
LINK = $(CXX)
LIB = ${CROSS_COMPILE}ar -cr
RANLIB = ${CROSS_COMPILE}ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
STRIP = ${CROSS_COMPILE}strip
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p

#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so

#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -Wall -Wno-sign-compare
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2

#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL

#
# System Specific Libraries
#
SYSLIBS = -lpthread -ldl -lrt

0 comments on commit fb5501e

Please sign in to comment.