From: Jeffrey Walton <noloader@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: Unusual library path on OS X
Date: Mon, 31 Dec 2018 15:57:10 -0500 [thread overview]
Message-ID: <CAH8yC8n1BB4ZBqd7VcLXdRzovbOxCRrmztsCBK8ENAexbxSyBA@mail.gmail.com> (raw)
Hi Everyone,
I'm building Git 1.20.1 from sources on OS X. Git (and its dependents)
were configured with:
PKGCONFPATH: /usr/local/lib/pkgconfig
CPPFLAGS: -I/usr/local/include -DNDEBUG
CFLAGS: -g2 -O2 -march=native -fPIC
CXXFLAGS: -g2 -O2 -march=native -fPIC
LDFLAGS: -L/usr/local/lib -Wl,-rpath,/usr/local/lib
LDLIBS: -ldl -lpthread
For Git it results in a configure called with:
PERL="$SH_PERL" \
PKG_CONFIG_PATH="${BUILD_PKGCONFIG[*]}" \
CPPFLAGS="${BUILD_CPPFLAGS[*]}" \
CFLAGS="${BUILD_CFLAGS[*]}" \
CXXFLAGS="${BUILD_CXXFLAGS[*]}" \
LDFLAGS="${BUILD_LDFLAGS[*]}" \
LIBS="-lssl -lcrypto -lz ${BUILD_LIBS[*]}" \
./configure --prefix="$BUILD_PREFIX" --with-lib="$BUILD_LIBDIR" \
...
BUILD_PREFIX is /usr/local, and BUILD_LIBDIR=/usr/local/lib.
Linking produces the following, which seems a bit unusual. It looks
like PREFIX and LIBDIR are being concatenated:
LINK t/helper/test-fake-ssh
LINK t/helper/test-line-buffer
LINK t/helper/test-svn-fe
ld: warning: directory not found for option '-L/usr/local//usr/local/lib'
ld: warning: directory not found for option '-L/usr/local//usr/local/lib'
ld: warning: directory not found for option '-L/usr/local//usr/local/lib'
ld: warning: directory not found for option '-L/usr/local//usr/local/lib'
When I try to use --with-libdir=/usr/local/lib, I get:
configure: WARNING: unrecognized options: --with-libdir
Jeff
reply other threads:[~2018-12-31 20:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH8yC8n1BB4ZBqd7VcLXdRzovbOxCRrmztsCBK8ENAexbxSyBA@mail.gmail.com \
--to=noloader@gmail.com \
--cc=git@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).