git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Unusual library path on OS X
@ 2018-12-31 20:57 Jeffrey Walton
  0 siblings, 0 replies; only message in thread
From: Jeffrey Walton @ 2018-12-31 20:57 UTC (permalink / raw)
  To: Git List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-31 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-31 20:57 Unusual library path on OS X Jeffrey Walton

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git