diff options
author | Steven Shaw <steshaw@apache.org> | 2006-11-21 19:08:47 +0000 |
---|---|---|
committer | Steven Shaw <steshaw@apache.org> | 2006-11-21 19:08:47 +0000 |
commit | f71389d39b73c7e7fef7b7e81aa6d7da397ff286 (patch) | |
tree | 74e1db9114f225f68b2cab8da7453c0d0c3393f4 /cpp/options.mk | |
parent | a877a328957da2bf751edb8a50d08b19785b924e (diff) | |
download | qpid-python-f71389d39b73c7e7fef7b7e81aa6d7da397ff286.tar.gz |
QPID-120 Enabled qpid-cpp to build on RHEL3 with less pain.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477826 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/options.mk')
-rw-r--r-- | cpp/options.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/options.mk b/cpp/options.mk index 351f4bdefd..9fd966ad6a 100644 --- a/cpp/options.mk +++ b/cpp/options.mk @@ -36,8 +36,10 @@ endif ifdef USE_APR PLATFORM := apr IGNORE := posix -CXXFLAGS := $(CXXFLAGS) -DUSE_APR -I$(shell apr-1-config --includedir) -LDFLAGS := $(LDFLAGS) -L/usr/local/apr/lib -lapr-1 +APR_LDFLAGS := $(shell apr-1-config --link-ld --libs) +APR_CFLAGS := -DUSE_APR -I$(shell apr-1-config --includedir) +CXXFLAGS := $(CXXFLAGS) $(APR_CFLAGS) +LDFLAGS := $(LDFLAGS) $(APR_LDFLAGS) else PLATFORM := posix IGNORE := apr @@ -72,7 +74,9 @@ EXTRA_LIBDIRS := # -Wunreachable-code -Wpadded -Winline # -Wshadow - warns about boost headers. # +ifndef WARN WARN := -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers +endif INCLUDES := $(SRCDIRS:%=-I%) $(EXTRA_INCLUDES) LDFLAGS := $(LDFLAGS) -L$(LIBDIR) @@ -90,3 +94,4 @@ LIBFILE =$(CURDIR)/$(LIBDIR)/libqpid_$1.so.$2 LIB_COMMAND = mkdir -p $(dir $@) && $(CXX) -shared -o $@ $(LDFLAGS) $(CXXFLAGS) $^ +-include options-local-override.mk |