Tarantool development patches archive
 help / color / mirror / Atom feed
From: Alexander Turenko <alexander.turenko@tarantool.org>
To: Alexander Tikhonov <avtikhon@tarantool.org>
Cc: tarantool-patches@freelists.org, tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [tarantool-patches] Re: [PATCH] build: fix OpenSSL linking problems on FreeBSD
Date: Sat, 26 Oct 2019 03:43:30 +0300	[thread overview]
Message-ID: <20191026004330.z4ydq7xflko5qrrh@tkn_work_nb> (raw)
In-Reply-To: <20191018060124.zvu3d5eixvqiuyta@tkn_work_nb>

I'll resend the patch as a patchset of two patches: it will handle the
following build problems on FreeBSD and Mac OS:

- https://github.com/tarantool/tarantool/issues/4490
  "FreeBSD compilation failing due to curl dependencies"
- https://github.com/tarantool/tarantool/issues/4587
  "build: failed to link on MacOS with GNU binutils in PATH"

I'll do one change for this patch:

> > >> +    # Pass -isysroot=<SDK_PATH> option on Mac OS to a preprocessor
> > >> +    # and a C compiler to find header files installed with an SDK.
> > >> +    set(LIBCURL_CPPFLAGS "")
> > >> +    set(LIBCURL_CFLAGS "")
> > >> +    if (TARGET_OS_DARWIN AND NOT "${CMAKE_OSX_SYSROOT}" STREQUAL "")
> > >> +        set(LIBCURL_CPPFLAGS "${LIBCURL_CPPFLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
> > >> +        set(LIBCURL_CFLAGS "${LIBCURL_CFLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
> > >>      endif()


Added the following paragraph here.

 | diff --git a/cmake/BuildLibCURL.cmake b/cmake/BuildLibCURL.cmake
 | index 336c14c88..12062ec8b 100644
 | --- a/cmake/BuildLibCURL.cmake
 | +++ b/cmake/BuildLibCURL.cmake
 | @@ -21,6 +21,11 @@ macro(curl_build)
 |  
 |      # Pass -isysroot=<SDK_PATH> option on Mac OS to a preprocessor
 |      # and a C compiler to find header files installed with an SDK.
 | +    #
 | +    # The idea here is to don't pass all compiler/linker options
 | +    # that is set for tarantool, but only a subset that is
 | +    # necessary for choosen toolchain, and let curl's configure
 | +    # script set options that are appropriate for libcurl.
 |      set(LIBCURL_CPPFLAGS "")
 |      set(LIBCURL_CFLAGS "")
 |      if (TARGET_OS_DARWIN AND NOT "${CMAKE_OSX_SYSROOT}" STREQUAL "")

      reply	other threads:[~2019-10-26  0:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e6d1e7b9a2e65e7482edebea12b1615bec36e9eb.1569249719.git.alexander.turenko@tarantool.org>
     [not found] ` <20191016221939.i75hojrafnljgbec@tkn_work_nb>
     [not found]   ` <20191017115624.GA16357@tarantool.org>
     [not found]     ` <1571365805.179773702@f496.i.mail.ru>
2019-10-18  6:01       ` Alexander Turenko
2019-10-26  0:43         ` Alexander Turenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191026004330.z4ydq7xflko5qrrh@tkn_work_nb \
    --to=alexander.turenko@tarantool.org \
    --cc=avtikhon@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [Tarantool-patches] [tarantool-patches] Re: [PATCH] build: fix OpenSSL linking problems on FreeBSD' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox