diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-04-26 17:30:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-04-26 17:32:22 +0100 |
commit | 5f668959c5645bb8f5dbe6dbf77cf3da6fdb01a5 (patch) | |
tree | 7740bb40bb96ada0de5bafa9d2eb591b7cb36e06 | |
parent | 934a179b75de2385f1235847a3cbbf8c92480ec3 (diff) |
make liborcus build on platforms that need PTHREAD_LIBS
Change-Id: Ied274511193eba9373072f1bc0636fe7f8a52b02
-rw-r--r-- | liborcus/ExternalProject_liborcus.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/liborcus/ExternalProject_liborcus.mk b/liborcus/ExternalProject_liborcus.mk index 301141acf1d6..93cdcc4b03bd 100644 --- a/liborcus/ExternalProject_liborcus.mk +++ b/liborcus/ExternalProject_liborcus.mk @@ -64,11 +64,17 @@ endif endif liborcus_CXXFLAGS=$(CXXFLAGS) +liborcus_LDFLAGS=$(LDFLAGS) ifeq ($(COM),MSC) liborcus_CXXFLAGS+=$(BOOST_CXXFLAGS) endif ifeq ($(SYSTEM_BOOST),NO) liborcus_CXXFLAGS+=-I$(WORKDIR)/UnpackedTarball/boost +else +liborcus_LDFLAGS+=$(BOOST_LDFLAGS) +endif +ifneq (,$(PTHREAD_LIBS)) +liborcus_LDFLAGS+=$(PTHREAD_LIBS) endif $(call gb_ExternalProject_get_state_target,liborcus,build) : @@ -76,7 +82,7 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) : $(if $(liborcus_LIBS),LIBS='$(liborcus_LIBS)') \ $(if $(liborcus_CXXFLAGS),CXXFLAGS='$(liborcus_CXXFLAGS)') \ $(if $(liborcus_CPPFLAGS),CPPFLAGS='$(liborcus_CPPFLAGS)') \ - $(if $(filter YES,$(SYSTEM_BOOST)),LDFLAGS='$(BOOST_LDFLAGS)') \ + $(if $(liborcus_LDFLAGS),LDFLAGS='$(liborcus_LDFLAGS)') \ ./configure \ --with-pic \ --enable-static \ |